summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkubectl-g3
-rwxr-xr-xkubectl-getsecret3
-rwxr-xr-xkubectl_complete-g3
-rwxr-xr-xkubectl_complete-getsecret3
4 files changed, 12 insertions, 0 deletions
diff --git a/kubectl-g b/kubectl-g
new file mode 100755
index 0000000..ae50480
--- /dev/null
+++ b/kubectl-g
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+kubectl get "$@" -o yaml | bat -l yaml
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}}' "$@"
diff --git a/kubectl_complete-g b/kubectl_complete-g
new file mode 100755
index 0000000..450f11d
--- /dev/null
+++ b/kubectl_complete-g
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec kubectl __complete get "$@"
diff --git a/kubectl_complete-getsecret b/kubectl_complete-getsecret
new file mode 100755
index 0000000..701250c
--- /dev/null
+++ b/kubectl_complete-getsecret
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec kubectl __complete get secret "$@"