Created
February 25, 2020 13:32
-
-
Save dasMulli/5d02af1ed8e4a4d770e230bbb5b0e9bf to your computer and use it in GitHub Desktop.
Kubernetes namespace switching utility for Windows
This file contains hidden or 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
@echo off | |
if "%~1"=="" GOTO PRINTNAMESPACE | |
: SETNAMESPACE | |
kubectl config set-context --current --namespace="%~1" | |
: PRINTNAMESPACE | |
kubectl config view --minify --output "jsonpath={..namespace}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment