feat(kubectl): add kcgetns alias to show the current namespace (#13215)

* rebase and review changes

* full command in readme

* space
This commit is contained in:
Jans Rautenbach authored and GitHub committed 2026-11-27 18:33:03 -08:00
1 parent 71679f351d
commit 4ec1d17074
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -31,7 +31,7 @@ alias kapk='kubectl apply -k'
# Drop into an interactive terminal on a container
alias keti='kubectl exec -t -i'
# Manage configuration quickly to switch contexts between local, dev ad staging.
# Manage configuration quickly to switch contexts between local, dev and staging.
alias kcuc='kubectl config use-context'
alias kcsc='kubectl config set-context'
alias kcdc='kubectl config delete-context'
@@ -83,6 +83,7 @@ alias kens='kubectl edit namespace'
alias kdns='kubectl describe namespace'
alias kdelns='kubectl delete namespace'
alias kcn='kubectl config set-context --current --namespace'
alias kcgetns="kubectl config view --minify -o 'jsonpath={.contexts[0].context.namespace}'"
# ConfigMap management
alias kgcm='kubectl get configmaps'