Skip to content

Commit

Permalink
[Bug] Fix #2367
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Dec 24, 2023
1 parent 8a23062 commit 7e15e2d
Show file tree
Hide file tree
Showing 17 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion plugins/carvel.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# $HOME/.k9s/plugin.yml
plugin:
plugins:
kapp-inspect:
shortCut: Shift-Z
confirm: false
Expand Down
10 changes: 5 additions & 5 deletions plugins/crossplane.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
# List all the resources managed by a Composite Resource
kube-lineage:
shortCut: Ctrl-X
Expand All @@ -11,11 +11,11 @@ plugin:
args:
- -c
- >-
kubectl lineage
kubectl lineage
-d 6
--exclude-types Event,ProviderConfigUsage.aws.upbound.io,ProviderConfigUsage.kubernetes.crossplane.io
--show-group
--context $CONTEXT
$RESOURCE_NAME
$NAME
--context $CONTEXT
$RESOURCE_NAME
$NAME
| less -K
2 changes: 1 addition & 1 deletion plugins/debug-container.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
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:
Expand Down
2 changes: 1 addition & 1 deletion plugins/dive.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
dive:
shortCut: d
confirm: false
Expand Down
68 changes: 34 additions & 34 deletions plugins/flux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# move selected line to chosen resource in K9s, then:
# Shift-T (with confirmation) to toggle helm releases or kustomizations suspend and resume
# Shift-R (no confirmation) to reconcile a git source or a helm release or a kustomization
plugin:
plugins:
toggle-helmrelease:
shortCut: Shift-T
confirm: true
Expand All @@ -19,7 +19,7 @@ plugin:
flux
$verb helmrelease
--context $CONTEXT
-n $NAMESPACE $NAME
-n $NAMESPACE $NAME
| less -K
toggle-kustomization:
shortCut: Shift-T
Expand All @@ -34,10 +34,10 @@ plugin:
- >-
suspended=$(kubectl --context $CONTEXT get kustomizations -n $NAMESPACE $NAME -o=custom-columns=TYPE:.spec.suspend | tail -1);
verb=$([ $suspended = "true" ] && echo "resume" || echo "suspend");
flux
$verb kustomization
--context $CONTEXT
-n $NAMESPACE $NAME
flux
$verb kustomization
--context $CONTEXT
-n $NAMESPACE $NAME
| less -K
reconcile-git:
shortCut: Shift-R
Expand All @@ -53,7 +53,7 @@ plugin:
flux
reconcile source git
--context $CONTEXT
-n $NAMESPACE $NAME
-n $NAMESPACE $NAME
| less -K
reconcile-hr:
shortCut: Shift-R
Expand All @@ -66,10 +66,10 @@ plugin:
args:
- -c
- >-
flux
reconcile helmrelease
--context $CONTEXT
-n $NAMESPACE $NAME
flux
reconcile helmrelease
--context $CONTEXT
-n $NAMESPACE $NAME
| less -K
reconcile-helm-repo:
shortCut: Shift-Z
Expand All @@ -82,10 +82,10 @@ plugin:
args:
- -c
- >-
flux
reconcile source helm
--context $CONTEXT
-n $NAMESPACE $NAME
flux
reconcile source helm
--context $CONTEXT
-n $NAMESPACE $NAME
| less -K
reconcile-oci-repo:
shortCut: Shift-Z
Expand All @@ -98,10 +98,10 @@ plugin:
args:
- -c
- >-
flux
reconcile source oci
--context $CONTEXT
-n $NAMESPACE $NAME
flux
reconcile source oci
--context $CONTEXT
-n $NAMESPACE $NAME
| less -K
reconcile-ks:
shortCut: Shift-R
Expand Down Expand Up @@ -133,7 +133,7 @@ plugin:
flux
reconcile image repository
--context $CONTEXT
-n $NAMESPACE $NAME
-n $NAMESPACE $NAME
| less -K
reconcile-iua:
shortCut: Shift-R
Expand All @@ -146,10 +146,10 @@ plugin:
args:
- -c
- >-
flux
reconcile image update
flux
reconcile image update
--context $CONTEXT
-n $NAMESPACE $NAME
-n $NAMESPACE $NAME
| less -K
trace:
shortCut: Shift-A
Expand All @@ -163,12 +163,12 @@ plugin:
- -c
- >-
resource=$(echo $RESOURCE_NAME | sed -E 's/ies$/y/' | sed -E 's/ses$/se/' | sed -E 's/(s|es)$//g')
flux
trace
--context $CONTEXT
--kind $resource
--api-version $RESOURCE_GROUP/$RESOURCE_VERSION
--namespace $NAMESPACE $NAME
flux
trace
--context $CONTEXT
--kind $resource
--api-version $RESOURCE_GROUP/$RESOURCE_VERSION
--namespace $NAMESPACE $NAME
| less -K
# credits: https://github.com/fluxcd/flux2/discussions/2494
get-suspended-helmreleases:
Expand All @@ -182,10 +182,10 @@ plugin:
args:
- -c
- >-
kubectl get
--all-namespaces
helmreleases.helm.toolkit.fluxcd.io -o json
| jq -r '.items[] | select(.spec.suspend==true) | [.metadata.namespace,.metadata.name,.spec.suspend] | @tsv'
kubectl get
--all-namespaces
helmreleases.helm.toolkit.fluxcd.io -o json
| jq -r '.items[] | select(.spec.suspend==true) | [.metadata.namespace,.metadata.name,.spec.suspend] | @tsv'
| less
get-suspended-kustomizations:
shortCut: Shift-S
Expand All @@ -198,7 +198,7 @@ plugin:
args:
- -c
- >-
kubectl get
kubectl get
--all-namespaces
kustomizations.kustomize.toolkit.fluxcd.io -o json
| jq -r '.items[] | select(.spec.suspend==true) | [.metadata.name,.spec.suspend] | @tsv'
Expand Down
2 changes: 1 addition & 1 deletion plugins/get-all.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
#get all resources in a namespace using the krew get-all plugin
get-all-namespace:
shortCut: g
Expand Down
2 changes: 1 addition & 1 deletion plugins/helm-default-values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
helm-default-values:
shortCut: Shift-V
confirm: false
Expand Down
2 changes: 1 addition & 1 deletion plugins/helm-purge.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# $HOME/.k9s/plugin.yml
plugin:
plugins:
# Issues a helm delete --purge for the resource associated with the selected pod
helm-purge:
shortCut: Ctrl-P
Expand Down
2 changes: 1 addition & 1 deletion plugins/helm_values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# View user-supplied values when the helm chart was created

plugin:
plugins:
helm-values:
shortCut: v
confirm: false
Expand Down
2 changes: 1 addition & 1 deletion plugins/job_suspend.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
# Suspends/Resumes a cronjob
toggleCronjob:
shortCut: Ctrl-S
Expand Down
2 changes: 1 addition & 1 deletion plugins/k3d_root_shell.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
# Opens a shell to k3d container as root
k3d-root-shell:
shortCut: Shift-S
Expand Down
2 changes: 1 addition & 1 deletion plugins/log_full.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
# See https://k9scli.io/topics/plugins/
raw-logs-follow:
shortCut: Ctrl-L
Expand Down
2 changes: 1 addition & 1 deletion plugins/log_jq.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
# Sends logs over to jq for processing. This leverages kubectl plugin kubectl-jq.
jqlogs:
shortCut: Ctrl-J
Expand Down
2 changes: 1 addition & 1 deletion plugins/log_stern.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
# Leverage stern (https://github.com/stern/stern) to output logs.
stern:
shortCut: Ctrl-L
Expand Down
2 changes: 1 addition & 1 deletion plugins/rm-ns.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugin:
plugins:
# remove finalizers from a stuck namespace
rm-ns:
shortCut: n
Expand Down
2 changes: 1 addition & 1 deletion plugins/watch_events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# requires linux "watch" command
# change '-n' to adjust refresh time in seconds

plugin:
plugins:
watch-events:
shortCut: Shift-E
confirm: false
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ apps:

parts:
build:
plugin: go
plugins: go
source: https://github.com/derailed/k9s.git
source-tag: $SNAPCRAFT_PROJECT_VERSION
override-build: |
Expand Down

0 comments on commit 7e15e2d

Please sign in to comment.