Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
d0e4319a
Commit
d0e4319a
authored
May 03, 2019
by
j-griffith
Browse files
Add PersistentVolumeClaim support to kubectl plugin
Just add aliases for PVC actions.
parent
8113ed06
Changes
2
Show whitespace changes
Inline
Side-by-side
plugins/kubectl/README.md
View file @
d0e4319a
...
...
@@ -89,3 +89,9 @@ plugins=(... kubectl)
| keno |
`kubectl edit node`
| Edit nodes resource from the default editor |
| kdno |
`kubectl describe node`
| Describe node resource in detail |
| kdelno |
`kubectl delete node`
| Delete the node |
| | |
**Persistent Volume Claim management**
|
| kgpvc |
`kubectl get pvc`
| List all PVCs |
| kgpvcw |
`kgpvc --watch`
| After listing/getting the requested object, watch for changes |
| kepvc |
`kubectl edit pvc`
| Edit pvcs from the default editor |
| kdpvc |
`kubectl describe pvc`
| Descirbe all pvcs |
| kdelpvc |
`kubectl delete pvc`
| Delete all pvcs matching passed arguments |
plugins/kubectl/kubectl.plugin.zsh
View file @
d0e4319a
...
...
@@ -112,3 +112,11 @@ alias kgno='kubectl get nodes'
alias
keno
=
'kubectl edit node'
alias
kdno
=
'kubectl describe node'
alias
kdelno
=
'kubectl delete node'
# PVC management.
alias
kgpvc
=
'kubectl get pvc'
alias
kgpvcw
=
'kgpvc --watch'
alias
kepvc
=
'kubectl edit pvc'
alias
kdpvc
=
'kubectl describe pvc'
alias
kdelpvc
=
'kubectl delete pvc'
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