Skip to content

Commit

Permalink
CH-162 fix for secrets controls
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Nov 22, 2024
1 parent a0302fc commit ecca698
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deployment-configuration/helm/templates/auto-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ stringData:
# Refresh at any deployment for ? (pure random) value
{{ $k }}: {{ randAlphaNum 20 }}
{{- end }}
{{- else 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 }}
Expand Down

0 comments on commit ecca698

Please sign in to comment.