36e13f4803f2fef7d7ba3109cb0bd913de78cfea
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Add PersistentVolumeClaim support to kubectl plugin (#7827)
Just add aliases for PVC actions.
Diff
1diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md
2index 0514d8f3f598c8b19d128d6819c638e4dea9ff4d..4541c7e92d94c2c8840ba9860a3bb68463511f5b 100644
3--- a/plugins/kubectl/README.md
4+++ b/plugins/kubectl/README.md
5@@ -90,3 +90,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 cf42beaea1f7ccb5b98a35dcd7b67984af1ad716..5097732dbd8572aa588eb7467ddfc87a2c7c93cf 100644
17--- a/plugins/kubectl/kubectl.plugin.zsh
18+++ b/plugins/kubectl/kubectl.plugin.zsh
19@@ -115,3 +115,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+