From 051ab834ef95b3f1e064adf47d353dd0667150d8 Mon Sep 17 00:00:00 2001 From: hophacker Date: Thu, 27 Feb 2020 18:29:53 +0800 Subject: [PATCH] add direct CONTEXT to kubectl helm --- zsh/functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 16c5be6..8e6a2aa 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -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