summaryrefslogtreecommitdiff
path: root/plugins/kubectl
diff options
context:
space:
mode:
authorj-griffith <john.griffith8@gmail.com>2019-05-03 13:22:18 -0600
committerj-griffith <john.griffith8@gmail.com>2019-05-03 13:22:18 -0600
commitd0e4319a703ab6d1e56a8f615a8d202d3a3753fd (patch)
tree4af77994b4440124d8bd6557cc971589dba898e2 /plugins/kubectl
parent8113ed065d5bead01430e393bd33d6e32a597471 (diff)
downloadzsh-d0e4319a703ab6d1e56a8f615a8d202d3a3753fd.tar.gz
zsh-d0e4319a703ab6d1e56a8f615a8d202d3a3753fd.tar.bz2
zsh-d0e4319a703ab6d1e56a8f615a8d202d3a3753fd.zip
Add PersistentVolumeClaim support to kubectl plugin
Just add aliases for PVC actions.
Diffstat (limited to 'plugins/kubectl')
-rw-r--r--plugins/kubectl/README.md6
-rw-r--r--plugins/kubectl/kubectl.plugin.zsh8
2 files changed, 14 insertions, 0 deletions
diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md
index 3343f0195..29dc28d5f 100644
--- a/plugins/kubectl/README.md
+++ b/plugins/kubectl/README.md
@@ -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 |
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index ab7a1a0a4..31c87ff82 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -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'
+