From f7ca14cb60458b93410bd6f98f433a01b42f1f60 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 9 Dec 2024 14:19:48 +0100
Subject: [PATCH] OZG-6544: Fix issue with Helm language and commentary

---
 src/main/helm/templates/api_password_secret.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/helm/templates/api_password_secret.yaml b/src/main/helm/templates/api_password_secret.yaml
index 53ddbeab..d452517e 100644
--- a/src/main/helm/templates/api_password_secret.yaml
+++ b/src/main/helm/templates/api_password_secret.yaml
@@ -22,7 +22,7 @@
 # unter der Lizenz sind dem Lizenztext zu entnehmen.
 #
 
-{{ if and (not (.Values.sso).api_user) (((.Values.ozgcloud).keycloak).api).password }}
+{{ if and (not (.Values.sso).api_user) (((.Values.ozgcloud).keycloak).api).password -}}
 apiVersion: v1
 kind: Secret
 metadata:
@@ -32,4 +32,4 @@ metadata:
 type: Opaque
 stringData:
   password: {{ required "ozgcloud.keycloak.api.password must be set" .Values.ozgcloud.keycloak.api.password }}
-{{ end }}
\ No newline at end of file
+{{- end -}}
\ No newline at end of file
-- 
GitLab