Skip to content

Commit

Permalink
Updated k9s plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed May 11, 2024
1 parent df78ce9 commit ed306dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .k9s/plugins/flux.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
# k9s flux plugin by mmontes11. See: https://github.com/mmontes11/k8s-scripts/tree/main/plugins
plugins:
#--- Create debug container for selected pod in current namespace
# See https://kubernetes.io/docs/tasks/debug/debug-application/debug-running-pod/#ephemeral-container
debug:
shortCut: Shift-D
description: Add debug container
dangerous: true
scopes:
- containers
command: bash
background: false
confirm: true
args:
- -c
- "kubectl debug -it --context $CONTEXT -n=$NAMESPACE $POD --target=$NAME --image=nicolaka/netshoot:v0.12 --share-processes -- bash"
toggle-helmrelease:
shortCut: Shift-T
confirm: true
Expand Down Expand Up @@ -63,7 +49,7 @@ plugins:
- >-
flux reconcile helmrelease --context $CONTEXT -n $NAMESPACE $NAME | less -K
reconcile-helm-repo:
shortCut: Shift-Z
shortCut: Shift-R
description: Flux reconcile
scopes:
- helmrepositories
Expand All @@ -75,7 +61,7 @@ plugins:
- >-
flux reconcile source helm --context $CONTEXT -n $NAMESPACE $NAME | less -K
reconcile-oci-repo:
shortCut: Shift-Z
shortCut: Shift-R
description: Flux reconcile
scopes:
- ocirepositories
Expand Down
1 change: 1 addition & 0 deletions k9s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ cp .k9s/skins/* "$K9S_CONFIG/skins"

K9S_PLUGINS=(
# oficial
"https://raw.githubusercontent.com/derailed/k9s/master/plugins/debug-container.yaml"
"https://raw.githubusercontent.com/derailed/k9s/master/plugins/watch-events.yaml"
# custom
"https://raw.githubusercontent.com/mmontes11/k8s-scripts/main/.k9s/plugins/flux.yaml"
Expand Down

0 comments on commit ed306dc

Please sign in to comment.