From 492b47bbd55527ad8d9ff403b17b02a1e37c5c53 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 14 Feb 2024 12:16:44 +0100 Subject: add kubectl helpers Signed-off-by: Florian Pritz --- kubectl-getsecret | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 kubectl-getsecret (limited to 'kubectl-getsecret') 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}}' "$@" -- cgit v1.2.3-24-g4f1b