add kg hg
This commit is contained in:
parent
b796664efe
commit
dc19cf45bf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user