Skip to content

Commit

Permalink
fix: remove the unneeded if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
misba7 committed Mar 14, 2024
1 parent 2c4ac1a commit f6a32fa
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ Create GLUU_JAVA_OPTIONS ENV for passing custom work and detailed logs
*/}}
{{- define "fido2.customJavaOptions"}}
{{ $custom := "" }}
{{- if .Values.global.fido2.gluuCustomJavaOptions }}
{{ $custom = printf "%s" .Values.global.fido2.gluuCustomJavaOptions }}
{{- end}}
{{ $memory := .Values.resources.limits.memory | replace "Mi" "" | int -}}
{{- $maxDirectMemory := printf "-XX:MaxDirectMemorySize=%dm" $memory -}}
{{- $xmx := printf "-Xmx%dm" (sub $memory 300) -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ Create GLUU_JAVA_OPTIONS ENV for passing custom work and detailed logs
*/}}
{{- define "oxauth.customJavaOptions"}}
{{ $custom := "" }}
{{- if .Values.global.oxauth.gluuCustomJavaOptions }}
{{ $custom = printf "%s" .Values.global.oxauth.gluuCustomJavaOptions }}
{{- end}}
{{ $memory := .Values.resources.limits.memory | replace "Mi" "" | int -}}
{{- $maxDirectMemory := printf "-XX:MaxDirectMemorySize=%dm" $memory -}}
{{- $xmx := printf "-Xmx%dm" (sub $memory 300) -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ Create GLUU_JAVA_OPTIONS ENV for passing custom work and detailed logs
{{- define "oxd-server.customJavaOptions"}}
{{ $custom := "" }}
{{- $gluuCustomJavaOptions := index .Values.global "oxd-server" "gluuCustomJavaOptions" }}
{{- if $gluuCustomJavaOptions }}
{{- $custom := printf "%s" $gluuCustomJavaOptions }}
{{- end}}
{{ $memory := .Values.resources.limits.memory | replace "Mi" "" | int -}}
{{- $maxDirectMemory := printf "-XX:MaxDirectMemorySize=%dm" $memory -}}
{{- $xmx := printf "-Xmx%dm" (sub $memory 300) -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ Create GLUU_JAVA_OPTIONS ENV for passing custom work and detailed logs
{{ $container := "" }}
{{ $xmlsec := "" }}
{{ $custom := "" }}
{{- if .Values.global.oxshibboleth.gluuCustomJavaOptions }}
{{ $custom = printf "%s " .Values.global.oxshibboleth.gluuCustomJavaOptions }}
{{- end}}
{{- if .Values.global.oxshibboleth.appLoggers.ldapLogLevel }}
{{ $ldap = printf "-Didp.loglevel.ldap=%s " .Values.global.oxshibboleth.appLoggers.ldapLogLevel }}
{{- end}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ Create GLUU_JAVA_OPTIONS ENV for passing custom work and detailed logs
*/}}
{{- define "oxtrust.customJavaOptions"}}
{{ $custom := "" }}
{{- if .Values.global.oxtrust.gluuCustomJavaOptions }}
{{ $custom = printf "%s" .Values.global.oxtrust.gluuCustomJavaOptions }}
{{- end}}
{{ $memory := .Values.resources.limits.memory | replace "Mi" "" | int -}}
{{- $maxDirectMemory := printf "-XX:MaxDirectMemorySize=%dm" $memory -}}
{{- $xmx := printf "-Xmx%dm" (sub $memory 300) -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ Create GLUU_JAVA_OPTIONS ENV for passing custom work and detailed logs
*/}}
{{- define "scim.customJavaOptions"}}
{{ $custom := "" }}
{{- if .Values.global.scim.gluuCustomJavaOptions }}
{{ $custom = printf "%s" .Values.global.scim.gluuCustomJavaOptions }}
{{- end}}
{{ $memory := .Values.resources.limits.memory | replace "Mi" "" | int -}}
{{- $maxDirectMemory := printf "-XX:MaxDirectMemorySize=%dm" $memory -}}
{{- $xmx := printf "-Xmx%dm" (sub $memory 300) -}}
Expand Down

0 comments on commit f6a32fa

Please sign in to comment.