add direct CONTEXT to kubectl helm
This commit is contained in:
parent
59bc04333a
commit
051ab834ef
@ -234,7 +234,7 @@ function gitcopy() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
function kubectl() {
|
function kubectl() {
|
||||||
CONTEXT=gcloud
|
CONTEXT=${CONTEXT:-gcloud}
|
||||||
DEBUG=false
|
DEBUG=false
|
||||||
finalopts=()
|
finalopts=()
|
||||||
while [[ $@ != "" ]] do
|
while [[ $@ != "" ]] do
|
||||||
@ -283,7 +283,7 @@ function stern {
|
|||||||
command stern $finalopts -t --since 10m --kubeconfig=$HOME/.kube/${CONTEXT}_config
|
command stern $finalopts -t --since 10m --kubeconfig=$HOME/.kube/${CONTEXT}_config
|
||||||
}
|
}
|
||||||
function helm() {
|
function helm() {
|
||||||
CONTEXT=gcloud
|
CONTEXT=${CONTEXT:-gcloud}
|
||||||
DEBUG=false
|
DEBUG=false
|
||||||
finalopts=()
|
finalopts=()
|
||||||
while [[ $@ != "" ]] do
|
while [[ $@ != "" ]] do
|
||||||
|
Loading…
Reference in New Issue
Block a user