Skip to content

Instantly share code, notes, and snippets.

@jstrachan
Created September 28, 2016 08:24
Show Gist options
  • Save jstrachan/f3b4bf7be6aa0c337452ebfff49e65db to your computer and use it in GitHub Desktop.
Save jstrachan/f3b4bf7be6aa0c337452ebfff49e65db 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