add kg hg

This commit is contained in:
hophacker 2019-12-26 22:50:47 +08:00
parent b796664efe
commit dc19cf45bf

View File

@ -250,6 +250,7 @@ function k() {
shift $((OPTIND-1)) shift $((OPTIND-1))
kubectl $* --kubeconfig=$HOME/.kube/${CONTEXT}_config kubectl $* --kubeconfig=$HOME/.kube/${CONTEXT}_config
} }
alias kg="k -c qcloud"
function h() { function h() {
CONTEXT=gcloud CONTEXT=gcloud
while getopts ":c:" opt; do while getopts ":c:" opt; do
@ -267,6 +268,7 @@ function h() {
esac esac
helm $* $TLS --kubeconfig $HOME/.kube/${CONTEXT}_config helm $* $TLS --kubeconfig $HOME/.kube/${CONTEXT}_config
} }
alias hg="h -c qcloud"
function kexec { function kexec {
RAN=false RAN=false
CONTEXT=gcloud CONTEXT=gcloud