From 49bc099153340e2172c02fec6512819464cdc550 Mon Sep 17 00:00:00 2001 From: Filippo Ledda Date: Fri, 8 Nov 2024 16:05:56 +0100 Subject: [PATCH] CH-162 fix for non string secrets +1 --- deployment-configuration/helm/templates/auto-secrets.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment-configuration/helm/templates/auto-secrets.yaml b/deployment-configuration/helm/templates/auto-secrets.yaml index df92258a..9ab6783a 100644 --- a/deployment-configuration/helm/templates/auto-secrets.yaml +++ b/deployment-configuration/helm/templates/auto-secrets.yaml @@ -18,7 +18,7 @@ stringData: {{- if and $v (and (eq (typeOf $v) "string") (ne $v "?")) }} # Set secret value to value in values.yaml if specified {{ $k }}: {{ $v }} - {{- else if or (and (eq (typeOf $v) "string") (eq $v "?")) (not (hasKey $secret.data $k)) }} + {{- else if and (eq (typeOf $v) "string") (or (eq $v "?") (not (hasKey $secret.data $k))) }} # Create a random secret value if not specified in values.yaml if: # 1. it is not set and it is not already in the deployed secret (static random secret) # 2. its value is ? (dynamic random secret)