feat: secrets

main
Sven Ketelsen 4 years ago
parent 328545697a
commit bcde36e125

@ -13,7 +13,7 @@ data:
{{- $old_sec := lookup "v1" "Secret" .Release.Namespace $secret_name }}
# check, if a secret is already set
{{- if or (not $old_sec) (not $old_sec.data) (not index $old_sec.data "JWT_SECRET") }}
{{- if or (or (not $old_sec) (not $old_sec.data)) (not index $old_sec.data "JWT_SECRET") }}
# if not set, then generate a new password
JWT_SECRET: {{ randAlphaNum 32 | b64enc }}
{{ else }}

Loading…
Cancel
Save