Unverified Commit 3343891e authored by Vitul Rana's avatar Vitul Rana Committed by GitHub

feat(kubectl): add aliases for job management (#9992)

parent f96a900e
...@@ -120,6 +120,11 @@ plugins=(... kubectl) ...@@ -120,6 +120,11 @@ plugins=(... kubectl)
| kecj | `kubectl edit cronjob` | Edit CronJob from the default editor | | kecj | `kubectl edit cronjob` | Edit CronJob from the default editor |
| kdcj | `kubectl describe cronjob` | Describe a CronJob in details | | kdcj | `kubectl describe cronjob` | Describe a CronJob in details |
| kdelcj | `kubectl delete cronjob` | Delete the CronJob | | kdelcj | `kubectl delete cronjob` | Delete the CronJob |
| | | **Job management** |
| kgj | `kubectl get job` | List all Job in ps output format |
| kej | `kubectl edit job` | Edit a Job in details |
| kdj | `kubectl describe job` | Describe the Job |
| kdelj | `kubectl delete job` | Delete the Job |
## Wrappers ## Wrappers
......
...@@ -178,6 +178,12 @@ alias kecj='kubectl edit cronjob' ...@@ -178,6 +178,12 @@ alias kecj='kubectl edit cronjob'
alias kdcj='kubectl describe cronjob' alias kdcj='kubectl describe cronjob'
alias kdelcj='kubectl delete cronjob' alias kdelcj='kubectl delete cronjob'
# Job management.
alias kgj='kubectl get job'
alias kej='kubectl edit job'
alias kdj='kubectl describe job'
alias kdelj='kubectl delete job'
# Only run if the user actually has kubectl installed # Only run if the user actually has kubectl installed
if (( ${+_comps[kubectl]} )); then if (( ${+_comps[kubectl]} )); then
function kj() { kubectl "$@" -o json | jq; } function kj() { kubectl "$@" -o json | jq; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment