From f4007fa0ce0ab80877435dcf4bd5559cc9d64594 Mon Sep 17 00:00:00 2001 From: Danny Rich Date: Sat, 20 Nov 2021 14:34:15 -0500 Subject: [PATCH] Add plugin examples for `helm get values` and `kubectl get events` (#1288) * Create helm_values.yml * Create watch_events.yml --- plugins/helm_values.yml | 14 ++++++++++++++ plugins/watch_events.yml | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/helm_values.yml create mode 100644 plugins/watch_events.yml diff --git a/plugins/helm_values.yml b/plugins/helm_values.yml new file mode 100644 index 00000000..36d8fdb2 --- /dev/null +++ b/plugins/helm_values.yml @@ -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" diff --git a/plugins/watch_events.yml b/plugins/watch_events.yml new file mode 100644 index 00000000..ffd8b2fc --- /dev/null +++ b/plugins/watch_events.yml @@ -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"