Skip to content

Commit

Permalink
fix(base-cluster): Update jq call to handle password key name correct
Browse files Browse the repository at this point in the history
  • Loading branch information
tasches committed Mar 8, 2024
1 parent 6435727 commit 401e839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/base-cluster/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Username: {{.Values.weaveworks.adminUser.username }}
{{- if lookup "v1" "Secret" "flux-system" $secretName }}
Password: {{ include "common.secrets.passwords.manage" (dict "secret" $secretName "key" "password-dec" "providedValues" (list "weaveworks.adminUser.password") "length" 20 "strong" false "skipB64enc" true "skipQuote" true "context" $) }}}}
{{- else }}
Password: $ kubectl -n flux-system get secret {{ $secretName | quote }} -o json | jq -r .data.password-dec | base64 -d
Password: $ kubectl -n flux-system get secret {{ $secretName | quote }} -o json | jq -r '.data."password-dec"' | base64 -d
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 401e839

Please sign in to comment.