summaryrefslogtreecommitdiffstats
path: root/kubectl-getsecret
diff options
context:
space:
mode:
Diffstat (limited to 'kubectl-getsecret')
-rwxr-xr-xkubectl-getsecret3
1 files changed, 3 insertions, 0 deletions
diff --git a/kubectl-getsecret b/kubectl-getsecret
new file mode 100755
index 0000000..745d36d
--- /dev/null
+++ b/kubectl-getsecret
@@ -0,0 +1,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}}' "$@"