Skip to content

Instantly share code, notes, and snippets.

@jstrachan
Created December 1, 2016 10:13
Show Gist options
  • Save jstrachan/5bce9e1604cbefdbf1225fc490744a0e to your computer and use it in GitHub Desktop.
Save jstrachan/5bce9e1604cbefdbf1225fc490744a0e to your computer and use it in GitHub Desktop.
#!/bin/sh
CONTEXT=`kubectl config current-context`
echo "Changing namespace to $1 on context $CONTEXT"
kubectl config set-context $CONTEXT --namespace=$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment