mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-17 22:26:45 +08:00
allow kubectl commands against all namespaces (#7637)
* allow kubectl commands against all namespaces * enhance the readme too
This commit is contained in:
1 parent
e3e0dd599e
commit
275e5b1349
2 files changed
+4
No files matched your search
@@ -13,6 +13,9 @@ fi
|
||||
# This command is used a LOT both below and in daily life
|
||||
alias k=kubectl
|
||||
|
||||
# Execute a kubectl command against all namespaces
|
||||
alias kca='f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'
|
||||
|
||||
# Apply a YML file
|
||||
alias kaf='kubectl apply -f'
|
||||
|
||||
|
||||
Reference in new issue
Block a user