Skip to content

Commit

Permalink
CH-162 fix for non string secrets +1
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Nov 8, 2024
1 parent b4e4102 commit 49bc099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployment-configuration/helm/templates/auto-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 49bc099

Please sign in to comment.