From 8ea73a849223bc2355191c8ee86d65772dd5eb28 Mon Sep 17 00:00:00 2001 From: Filippo Ledda Date: Fri, 22 Nov 2024 12:00:31 +0100 Subject: [PATCH] CH-162 add failsafe value fix --- deployment-configuration/helm/templates/auto-secrets.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deployment-configuration/helm/templates/auto-secrets.yaml b/deployment-configuration/helm/templates/auto-secrets.yaml index a908069c..a7d3b0b8 100644 --- a/deployment-configuration/helm/templates/auto-secrets.yaml +++ b/deployment-configuration/helm/templates/auto-secrets.yaml @@ -21,11 +21,12 @@ stringData: # Refresh at any deployment for ? (pure random) value {{ $k }}: {{ randAlphaNum 20 }} {{- end }} - {{- else if eq (typeOf $secret.data) "map" }}{{- if not (hasKey $secret.data $k) }} + {{- else if eq (typeOf $secret.data) "map" }} + {{- if not (hasKey $secret.data $k) }} # Create a random secret value if not specified in values.yaml if # it is not set and it is not already in the deployed secret (static random secret) {{ $k }}: {{ randAlphaNum 20 }} - {{- end}}{{- end}} + {{- end}} {{- else }} failsafe: check your values file {{- end }}