summaryrefslogtreecommitdiffstats
path: root/kubectl-getsecret
blob: 745d36d49e1337f078d23398e31c6bc2aea3c377 (plain)
1
2
3
#!/bin/bash

exec kubectl get secret -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' "$@"