From e974851657e7637369ba5f21ed22f8bd821e0648 Mon Sep 17 00:00:00 2001 From: Neng Lu Date: Tue, 5 Dec 2023 11:23:57 -0800 Subject: [PATCH] check style --- controllers/spec/common.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/controllers/spec/common.go b/controllers/spec/common.go index 18874702..f3b1a1fe 100644 --- a/controllers/spec/common.go +++ b/controllers/spec/common.go @@ -1091,7 +1091,7 @@ func setShardIDEnvironmentVariableCommand() string { } func getProcessJavaRuntimeArgs(name, packageName, clusterName, logLevel, details, extraDependenciesDir, uid string, - memory *resource.Quantity, javaOpts []string, authProvided, tlsProvided bool, secretMaps map[string]v1alpha1.SecretRef, + javaOpts []string, authProvided, tlsProvided bool, secretMaps map[string]v1alpha1.SecretRef, state *v1alpha1.Stateful, tlsConfig TLSConfig, authConfig *v1alpha1.AuthConfig, maxPendingAsyncRequests *int32, logConfigFileName string) []string { @@ -1933,14 +1933,6 @@ func getGenericSecretProviderArgs(secretMaps map[string]v1alpha1.SecretRef, lang return ret } -// Java command requires memory values in resource.DecimalSI format -func getDecimalSIMemory(quantity *resource.Quantity) string { - if quantity.Format == resource.DecimalSI { - return quantity.String() - } - return resource.NewQuantity(quantity.Value(), resource.DecimalSI).String() -} - func getTLSTrustCertPath(tlsVolume TLSConfig, path string) string { return fmt.Sprintf("%s/%s", tlsVolume.GetMountPath(), path) }