Skip to content

Commit

Permalink
CH-162 add failsafe value fix
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Nov 22, 2024
1 parent 4466edd commit 8ea73a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deployment-configuration/helm/templates/auto-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 8ea73a8

Please sign in to comment.