Skip to content

Commit

Permalink
check style
Browse files Browse the repository at this point in the history
  • Loading branch information
nlu90 committed Dec 5, 2023
1 parent f7e4377 commit e974851
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions controllers/spec/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit e974851

Please sign in to comment.