|
|
|
@ -14,9 +14,9 @@ data:
|
|
|
|
|
|
|
|
|
|
|
|
# check, if a secret is already set
|
|
|
|
# check, if a secret is already set
|
|
|
|
{{- if or (not $old_sec) (not $old_sec.data) }}
|
|
|
|
{{- if or (not $old_sec) (not $old_sec.data) }}
|
|
|
|
{{- if (index $old_sec.data "JWT_SECRET") }}
|
|
|
|
{{- if ($old_sec.data.JWT_SECRET) }}
|
|
|
|
# if set, then use the old value
|
|
|
|
# if set, then use the old value
|
|
|
|
JWT_SECRET: {{ index $old_sec.data "JWT_SECRET" }}
|
|
|
|
JWT_SECRET: {{ index $old_sec.data "JWT_SECRET" }}
|
|
|
|
{{ else }}
|
|
|
|
{{ else }}
|
|
|
|
# if not set, then generate a new password
|
|
|
|
# if not set, then generate a new password
|
|
|
|
JWT_SECRET: {{ randAlphaNum 32 | b64enc }}
|
|
|
|
JWT_SECRET: {{ randAlphaNum 32 | b64enc }}
|
|
|
|
|