mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-27 16:20:07 +00:00
move secrets-related alias to secrets section
This commit is contained in:
parent
a4a69dbcd2
commit
b35b7a75f1
1 changed files with 11 additions and 11 deletions
|
@ -55,17 +55,6 @@ 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='
|
|
||||||
_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
|
# Ingress management
|
||||||
alias kgi='kubectl get ingress'
|
alias kgi='kubectl get ingress'
|
||||||
|
@ -93,6 +82,17 @@ alias kgsec='kubectl get secret'
|
||||||
alias kgseca='kubectl get secret --all-namespaces'
|
alias kgseca='kubectl get secret --all-namespaces'
|
||||||
alias kdsec='kubectl describe secret'
|
alias kdsec='kubectl describe secret'
|
||||||
alias kdelsec='kubectl delete 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.
|
# Deployment management.
|
||||||
alias kgd='kubectl get deployment'
|
alias kgd='kubectl get deployment'
|
||||||
|
|
Loading…
Reference in a new issue