From b35b7a75f19ecebff8d77c18cda775a8698e158a Mon Sep 17 00:00:00 2001 From: Harrison Kiang Date: Wed, 4 Mar 2020 23:15:54 -0600 Subject: [PATCH] move secrets-related alias to secrets section --- plugins/kubectl/kubectl.plugin.zsh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index 7841c0e4d..b64154b65 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -55,17 +55,6 @@ alias kgswide='kgs -o wide' alias kes='kubectl edit svc' alias kds='kubectl describe svc' alias kdels='kubectl delete svc' -alias kdecs=' -_kdecs() { - if [ $(jq --version) != "jq-1.6" ]; then - echo "kdecs requires jq-1.6 to use the base64d format"; - return 1 - fi - kubectl get secret "$@" -o json | jq ".data | map_values(. | @base64d )"; - unset -f _kdecs - return 0 -}; -_kdecs' # Ingress management alias kgi='kubectl get ingress' @@ -93,6 +82,17 @@ alias kgsec='kubectl get secret' alias kgseca='kubectl get secret --all-namespaces' alias kdsec='kubectl describe secret' alias kdelsec='kubectl delete secret' +alias kdecs=' +_kdecs() { + if [ $(jq --version) != "jq-1.6" ]; then + echo "kdecs requires jq-1.6 to use the base64d format"; + return 1 + fi + kubectl get secret "$@" -o json | jq ".data | map_values(. | @base64d )"; + unset -f _kdecs + return 0 +}; +_kdecs' # Deployment management. alias kgd='kubectl get deployment'