mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue