add direct CONTEXT to kubectl helm

This commit is contained in:
hophacker 2020-02-27 18:29:53 +08:00
parent 59bc04333a
commit 051ab834ef

View File

@ -234,7 +234,7 @@ function gitcopy() {
fi
}
function kubectl() {
CONTEXT=gcloud
CONTEXT=${CONTEXT:-gcloud}
DEBUG=false
finalopts=()
while [[ $@ != "" ]] do
@ -283,7 +283,7 @@ function stern {
command stern $finalopts -t --since 10m --kubeconfig=$HOME/.kube/${CONTEXT}_config
}
function helm() {
CONTEXT=gcloud
CONTEXT=${CONTEXT:-gcloud}
DEBUG=false
finalopts=()
while [[ $@ != "" ]] do