Created
July 12, 2023 10:07
-
-
Save afirth/9b41e33ea47f1fc3840e13b4a2f5025a to your computer and use it in GitHub Desktop.
kubectl secrets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get secret NAME -o json | jq '.data | map_values(@base64d)' | |
kubectl get secret NAME -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment