mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-14 16:13:44 +08:00
kubectl: Add alias plugin for kubectl auth can-i --list
This shortcut is useful to check allowed action. It's common to execute this command when checking kubernetes security. GitHub issue: https://github.com/ohmyzsh/ohmyzsh/issues/13076
This commit is contained in:
parent
de1ca65dca
commit
6f0c5e1bd5
@ -178,6 +178,9 @@ alias kej='kubectl edit job'
|
|||||||
alias kdj='kubectl describe job'
|
alias kdj='kubectl describe job'
|
||||||
alias kdelj='kubectl delete job'
|
alias kdelj='kubectl delete job'
|
||||||
|
|
||||||
|
# Check allowed action
|
||||||
|
alias kacil='kubectl auth can-i --list'
|
||||||
|
|
||||||
# Utility print functions (json / yaml)
|
# Utility print functions (json / yaml)
|
||||||
function _build_kubectl_out_alias {
|
function _build_kubectl_out_alias {
|
||||||
setopt localoptions norcexpandparam
|
setopt localoptions norcexpandparam
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user