From 370d34904911df861fa215592a14f38acdbd6bfe Mon Sep 17 00:00:00 2001 From: Amro Misbah Date: Thu, 7 Mar 2024 11:59:57 +0200 Subject: [PATCH] fix: workaround the dash in oxd-server --- .../helm/gluu/charts/oxd-server/templates/_helpers.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pygluu/kubernetes/templates/helm/gluu/charts/oxd-server/templates/_helpers.tpl b/pygluu/kubernetes/templates/helm/gluu/charts/oxd-server/templates/_helpers.tpl index 7f2f418b..24bbce7e 100644 --- a/pygluu/kubernetes/templates/helm/gluu/charts/oxd-server/templates/_helpers.tpl +++ b/pygluu/kubernetes/templates/helm/gluu/charts/oxd-server/templates/_helpers.tpl @@ -72,8 +72,9 @@ Create GLUU_JAVA_OPTIONS ENV for passing custom work and detailed logs */}} {{- define "oxd-server.customJavaOptions"}} {{ $custom := "" }} -{{- if .Values.global.oxd-server.gluuCustomJavaOptions }} -{{ $custom = printf "%s" .Values.global.oxd-server.gluuCustomJavaOptions }} +{{- $gluuCustomJavaOptions := index .Values.global "oxd-server" "gluuCustomJavaOptions" }} +{{- if $gluuCustomJavaOptions }} +{{- $custom := printf "%s" $gluuCustomJavaOptions }} {{- end}} {{ $customJavaOptions := printf "%s -DCN_IDP_HOST=http://oxshibboleth:8080" $custom }} {{ $customJavaOptions | trimSuffix " " | quote }}