1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-30 09:40:09 +00:00

kdecs alias

This commit is contained in:
Harrison Kiang 2020-03-04 22:55:29 -06:00
parent ecf2240b06
commit 8350fcbf92

View file

@ -55,6 +55,7 @@ alias kgswide='kgs -o wide'
alias kes='kubectl edit svc' alias kes='kubectl edit svc'
alias kds='kubectl describe svc' alias kds='kubectl describe svc'
alias kdels='kubectl delete svc' alias kdels='kubectl delete svc'
alias kdecs='_check_jq(){ if [ $(jq --version) != "jq-1.6" ]; then echo "kdecs requires jq-1.6 to use the base64d format"; fi; unset -f _check_jq}; _check_jq; _kdecs(){kubectl get secret "$@" -o json | jq ".data | map_values(. | @base64d )"; unset -f _kdecs}; _kdecs'
# Ingress management # Ingress management
alias kgi='kubectl get ingress' alias kgi='kubectl get ingress'