Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
3343891e
Unverified
Commit
3343891e
authored
Mar 07, 2022
by
Vitul Rana
Committed by
GitHub
Mar 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(kubectl): add aliases for job management (#9992)
parent
f96a900e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
README.md
plugins/kubectl/README.md
+5
-0
kubectl.plugin.zsh
plugins/kubectl/kubectl.plugin.zsh
+6
-0
No files found.
plugins/kubectl/README.md
View file @
3343891e
...
@@ -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
...
...
plugins/kubectl/kubectl.plugin.zsh
View file @
3343891e
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment