fixed conflicting plugin shortcuts, and added 2 new plugins (#2930)

* added flux suspended resources retrieval plugin

using this plugin, you can press Shift-S in "kustomizations" and "helmreleases" k9s sections to get a list of all suspended resources... a temporary patch till k9s will allow custom columns based on .spec in its views...

* Create rm-ns.yml

to test: create an "undeletable" namespace, with wrong finalizers:

```
apiVersion: v1
kind: Namespace
metadata:
  name: test
spec:
  finalizers:
    - foregroundDeletion
```

apply to cluster: `kubectl create -f test.yaml`

go in NS view in k9s, then select the test NS and press CTRL-D to delete it... it will stay in terminating state, because of the finalizers... now press "n", and confirm, to remove the finalizers... the NS should now be gone...

do NOT run on the "all+" ns, it will crash k9s...

* Update log-full.yaml

* Update log-loki.yaml

* Update log-stern.yaml

* Update crossplane.yaml

* Update duplik8s.yaml

* Update flux.yaml

* Update log-full.yaml

* Delete plugins/rm-ns.yml

* Update and rename get_suspended.yml to get_suspended.yaml

* Delete plugins/get_suspended.yaml
mine
fragolinux 2024-10-28 01:20:53 +01:00 committed by GitHub
parent 47f92199c5
commit 88547dcc81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
plugins:
# List all the resources managed by a Composite Resource
kube-lineage:
shortCut: Ctrl-X
shortCut: Ctrl-U
confirm: false
description: "Kube Lineage"
scopes:

View File

@ -4,7 +4,7 @@
# See https://github.com/Telemaco019/duplik8s
plugins:
duplicate-pod:
shortCut: Ctrl-T
shortCut: Ctrl-B
description: Duplicate Pod
scopes:
- po

View File

@ -152,7 +152,7 @@ plugins:
-n $NAMESPACE $NAME
| less -K
trace:
shortCut: Shift-A
shortCut: Shift-P
confirm: false
description: Flux trace
scopes:

View File

@ -1,7 +1,7 @@
plugins:
# See https://k9scli.io/topics/plugins/
raw-logs-follow:
shortCut: Ctrl-L
shortCut: Ctrl-G
description: logs -f
scopes:
- po
@ -18,7 +18,7 @@ plugins:
- --kubeconfig
- $KUBECONFIG
log-less:
shortCut: Shift-L
shortCut: Shift-K
description: "logs|less"
scopes:
- po

View File

@ -13,7 +13,7 @@ plugins:
- "{ namespace = \"$NAMESPACE\", pod = \"$POD\", container = \"$NAME\" }"
- -f
loki-container-raw:
shortCut: Ctrl-L
shortCut: Ctrl-E
description: "loki raw"
scopes:
- containers

View File

@ -1,7 +1,7 @@
plugins:
# Leverage stern (https://github.com/stern/stern) to output logs.
stern:
shortCut: Ctrl-L
shortCut: Ctrl-Y
confirm: false
description: "Logs <Stern>"
scopes: