Add plugin examples for `helm get values` and `kubectl get events` (#1288)

* Create helm_values.yml

* Create watch_events.yml
mine
Danny Rich 2021-11-20 14:34:15 -05:00 committed by GitHub
parent 97f1214f9d
commit f4007fa0ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

14
plugins/helm_values.yml Normal file
View File

@ -0,0 +1,14 @@
# View user-supplied values when the helm chart was created
plugin:
helm-values:
shortCut: v
confirm: false
description: Values
scopes:
- helm
command: sh
background: false
args:
- -c
- "helm get values $COL-NAME -n $NAMESPACE --kube-context $CONTEXT | less"

16
plugins/watch_events.yml Normal file
View File

@ -0,0 +1,16 @@
# watch events on selected resources
# requires linux "watch" command
# change '-n' to adjust refresh time in seconds
plugin:
watch-events:
shortCut: Shift-E
confirm: false
description: Get Events
scopes:
- all
command: sh
background: false
args:
- -c
- "watch -n 5 kubectl get events --context $CONTEXT --namespace $NAMESPACE --field-selector involvedObject.name=$NAME"