Created
August 31, 2021 18:42
-
-
Save Ara4Sh/dc1ca0c7bcc1668e859cd02901bd325d to your computer and use it in GitHub Desktop.
kubectl command to decode secrets data (credit https://stackoverflow.com/a/58117444)
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 app-config -n demo -o go-template=' [23:06:16] | |
{{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