Skip to content

Commit 631b517

Browse files
committed
gracefully upgrade to new st2-auth secret format
1 parent e4c854f commit 631b517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/secrets_st2auth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ data:
2626
# Password, used to login to StackStorm system (default: auto-generated)
2727
{{- $previous := lookup "v1" "Secret" .Release.Namespace $name }}
2828
{{- if and $previous (not .Values.st2.password) }}
29-
ST2_AUTH_PASSWORD: {{ $previous.data.password }}
29+
ST2_AUTH_PASSWORD: {{ default $previous.data.password $previous.data.ST2_AUTH_PASSWORD }}
3030
{{ else }}
3131
ST2_AUTH_PASSWORD: {{ default (randAlphaNum 12) .Values.st2.password | b64enc | quote }}
3232
{{ end }}

0 commit comments

Comments
 (0)