From 960b709b9e8c527f1bb1eab152b203845b725401 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Thu, 21 Mar 2024 11:49:32 +0100 Subject: [PATCH] OZG-5238 Try to fix _helpers.tpl --- src/main/helm/templates/_helpers.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/helm/templates/_helpers.tpl b/src/main/helm/templates/_helpers.tpl index ffc0931f..46172ed4 100644 --- a/src/main/helm/templates/_helpers.tpl +++ b/src/main/helm/templates/_helpers.tpl @@ -60,8 +60,10 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} {{- end -}} {{- define "app.ssoClientName" -}} -{{- if (.Values.sso.keycloak_clients[0]).client_name -}} -{{ printf "%s" (.Values.sso.keycloak_clients[0]).client_name }} +{{- if ( .Values.sso).keycloak_clients -}} +{{- with (first .Values.sso.keycloak_clients) }} +{{ printf "%s" .client_name }} +{{- end }} {{- else -}} {{ printf "admin" }} {{- end -}} -- GitLab