mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 14:20:08 +00:00
change name
This commit is contained in:
parent
21bac01e6d
commit
ce445772ce
1 changed files with 6 additions and 6 deletions
|
@ -82,18 +82,18 @@ 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='
|
alias kdecsec='
|
||||||
_kdecs() {
|
_kdecsec() {
|
||||||
if [ $(jq --version) != "jq-1.6" ]; then
|
if [ $(jq --version) != "jq-1.6" ]; then
|
||||||
echo "kdecs requires jq-1.6 to use the base64d format";
|
echo "kdecsec requires jq-1.6 to use the base64d format";
|
||||||
unset -f _kdecs
|
unset -f _kdecsec
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
kubectl get secret "$@" -o json | jq ".data | map_values(. | @base64d )";
|
kubectl get secret "$@" -o json | jq ".data | map_values(. | @base64d )";
|
||||||
unset -f _kdecs
|
unset -f _kdecsec
|
||||||
return 0
|
return 0
|
||||||
};
|
};
|
||||||
_kdecs'
|
_kdecsec'
|
||||||
|
|
||||||
# Deployment management.
|
# Deployment management.
|
||||||
alias kgd='kubectl get deployment'
|
alias kgd='kubectl get deployment'
|
||||||
|
|
Loading…
Reference in a new issue