Skip to content

Instantly share code, notes, and snippets.

@Ara4Sh
Created August 31, 2021 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ara4Sh/dc1ca0c7bcc1668e859cd02901bd325d to your computer and use it in GitHub Desktop.
Save Ara4Sh/dc1ca0c7bcc1668e859cd02901bd325d to your computer and use it in GitHub Desktop.
kubectl command to decode secrets data (credit https://stackoverflow.com/a/58117444)
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