Created
March 27, 2019 14:04
-
-
Save joerx/3a881fec87396f3c2d8ee0c5ea4b3fad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function helmns() { | |
ctx=`kubectl config current-context` | |
ns=`kubectl config view -o=jsonpath="{.contexts[?(@.name==\"$ctx\")].context.namespace}"` | |
echo "Using tiller-namespace $ns" | |
helm --tiller-namespace $ns $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment