Last active
August 15, 2023 07:48
-
-
Save estahn/6b8cfac387ffacc8738cbe2ffb675932 to your computer and use it in GitHub Desktop.
Revisions
-
estahn renamed this gist
Dec 23, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
estahn renamed this gist
Dec 23, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
estahn renamed this gist
Dec 23, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
estahn renamed this gist
Dec 23, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
estahn created this gist
Dec 23, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ function kubectl-secrets () { kubectl get secrets $@ -ojson | jq '{name: .metadata.name, data: .data | map_values(@base64d)}' } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ Pop the function into your file where you keep your shell functions. Then run `source <shell function file>` to reload it into the shell. Now you're all set: ``` $ kubectl-secrets -n foobar secret-sauce { "name": "secret-sauce", "data": { "ADMIN_PASSWORD": "53O...vg==", "ADMIN_USERNAME": "admin" } } ```