Skip to content

Instantly share code, notes, and snippets.

@elsonrodriguez
Created October 8, 2020 21:43
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 elsonrodriguez/41aa9321c7c7ea671c35b21ae9ed7444 to your computer and use it in GitHub Desktop.
Save elsonrodriguez/41aa9321c7c7ea671c35b21ae9ed7444 to your computer and use it in GitHub Desktop.
kubectl get secret bleh -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