mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
fix(kubectl): use --current
flag in kcn
alias (#7605)
This commit is contained in:
parent
6a7285bc5b
commit
0655241fa6
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ plugins=(... kubectl)
|
|||
| kdeli | `kubectl delete ingress` | Delete ingress resources matching passed argument |
|
||||
| | | **Namespace management** |
|
||||
| kgns | `kubectl get namespaces` | List the current namespaces in a cluster |
|
||||
| kcn | `kubectl config set-context ...` | Change current namespace |
|
||||
| kcn | `kubectl config set-context --current --namespace` | Change current namespace |
|
||||
| kens | `kubectl edit namespace` | Edit namespace resource from the default editor |
|
||||
| kdns | `kubectl describe namespace` | Describe namespace resource in detail |
|
||||
| kdelns | `kubectl delete namespace` | Delete the namespace. WARNING! This deletes everything in the namespace |
|
||||
|
|
|
@ -71,7 +71,7 @@ alias kgns='kubectl get namespaces'
|
|||
alias kens='kubectl edit namespace'
|
||||
alias kdns='kubectl describe namespace'
|
||||
alias kdelns='kubectl delete namespace'
|
||||
alias kcn='kubectl config set-context $(kubectl config current-context) --namespace'
|
||||
alias kcn='kubectl config set-context --current --namespace'
|
||||
|
||||
# ConfigMap management
|
||||
alias kgcm='kubectl get configmaps'
|
||||
|
|
Loading…
Reference in a new issue