Skip to content

Instantly share code, notes, and snippets.

@efossas
Last active September 18, 2022 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save efossas/1e7e86b11c23547abbdbad6e9411e535 to your computer and use it in GitHub Desktop.
Save efossas/1e7e86b11c23547abbdbad6e9411e535 to your computer and use it in GitHub Desktop.
Kubectl Print Context
# kubectl_print_context CONTEXT_NAME
kubectl_print_context() {
kubectl config view --minify --flatten --context="$1";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment