Skip to content

Instantly share code, notes, and snippets.

@manno
Last active October 11, 2022 08:55
Show Gist options
  • Save manno/28e50790c53962baa6f6826adc530545 to your computer and use it in GitHub Desktop.
Save manno/28e50790c53962baa6f6826adc530545 to your computer and use it in GitHub Desktop.
~/.config/k9s/plugin.yml
---
plugin:
helm:
shortCut: Ctrl-X
description: "show helm secret"
scopes:
- secrets
confirmation: false
background: false
# create k9s-helmsecret.sh in $PATH with:
# kubectl get secrets --context "$1" -n "$2" "$3" -o json | jq -r '.data | map_values(@base64d)' | jq -r '.release' | base64 -d | gzip -d | jq | nvim -
command: k9s-helmsecret.sh
args:
- $CONTEXT
- $NAMESPACE
- $NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment