d0e4319a703ab6d1e56a8f615a8d202d3a3753fd

Author
j-griffith <john.griffith8@gmail.com>
Committer
j-griffith <john.griffith8@gmail.com>
Date

Message

Add PersistentVolumeClaim support to kubectl plugin

Just add aliases for PVC actions.

Diff

 1diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md
 2index 3343f019559a78acac02535f66a2597df6edff9e..29dc28d5f2b8eecec19c6b2b770d05b6c5353e8c 100644
 3--- a/plugins/kubectl/README.md
 4+++ b/plugins/kubectl/README.md
 5@@ -89,3 +89,9 @@ plugins=(... kubectl)
 6 | keno    | `kubectl edit node`                 | Edit nodes resource from the default editor                                                      |
 7 | kdno    | `kubectl describe node`             | Describe node resource in detail                                                                 |
 8 | kdelno  | `kubectl delete node`               | Delete the node                                                                                  |
 9+|         |                                   | **Persistent Volume Claim management**                                                           |
10+| kgpvc   | `kubectl get pvc`                   | List all PVCs                                                                                    |
11+| kgpvcw  | `kgpvc --watch`                     | After listing/getting the requested object, watch for changes                                    |
12+| kepvc   | `kubectl edit pvc`                  | Edit pvcs from the default editor                                                                |
13+| kdpvc   | `kubectl describe pvc`              | Descirbe all pvcs                                                                                |
14+| kdelpvc | `kubectl delete pvc`                | Delete all pvcs matching passed arguments                                                        |
15diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
16index ab7a1a0a44b79726c191bdb0c1e1fd3d0c25161e..31c87ff828cf053654b2fe705013480e04bb539a 100644
17--- a/plugins/kubectl/kubectl.plugin.zsh
18+++ b/plugins/kubectl/kubectl.plugin.zsh
19@@ -112,3 +112,11 @@ alias kgno='kubectl get nodes'
20 alias keno='kubectl edit node'
21 alias kdno='kubectl describe node'
22 alias kdelno='kubectl delete node'
23+
24+# PVC management.
25+alias kgpvc='kubectl get pvc'
26+alias kgpvcw='kgpvc --watch'
27+alias kepvc='kubectl edit pvc'
28+alias kdpvc='kubectl describe pvc'
29+alias kdelpvc='kubectl delete pvc'
30+