Skip to content

Commit 91041e7

Browse files
committed
Make sure to display the latest password when printing NOTES.txt
1 parent 25aceff commit 91041e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Ingress is enabled. You may access following endpoints:
4141

4242
2. Login with the following credentials:
4343
username: {{ .Values.st2.username }}
44-
password: {{ .Values.st2.password }}
44+
password: {{ with lookup "v1" "Secret" .Release.Namespace (print .Release.Name "-st2-auth") }}{{ index . "data" "password" }}{{ end }}
4545

4646
3. Use st2 CLI:
4747
export ST2CLIENT=$(kubectl get --namespace {{ .Release.Namespace }} pod -l app=st2client,release={{ .Release.Name }} -o jsonpath="{.items[0].metadata.name}")

0 commit comments

Comments
 (0)