Update flux plugin to handle inactive context (#2542)

* Update flux.yaml

* Update flux.yaml
mine
Pierce Staab 2024-02-21 18:53:35 -06:00 committed by GitHub
parent f2f4077b59
commit dae2590e0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -183,10 +183,11 @@ plugins:
- -c - -c
- >- - >-
kubectl get kubectl get
--context $CONTEXT
--all-namespaces --all-namespaces
helmreleases.helm.toolkit.fluxcd.io -o json helmreleases.helm.toolkit.fluxcd.io -o json
| jq -r '.items[] | select(.spec.suspend==true) | [.metadata.namespace,.metadata.name,.spec.suspend] | @tsv' | jq -r '.items[] | select(.spec.suspend==true) | [.metadata.namespace,.metadata.name,.spec.suspend] | @tsv'
| less | less -K
get-suspended-kustomizations: get-suspended-kustomizations:
shortCut: Shift-S shortCut: Shift-S
confirm: false confirm: false
@ -199,7 +200,8 @@ plugins:
- -c - -c
- >- - >-
kubectl get kubectl get
--context $CONTEXT
--all-namespaces --all-namespaces
kustomizations.kustomize.toolkit.fluxcd.io -o json kustomizations.kustomize.toolkit.fluxcd.io -o json
| jq -r '.items[] | select(.spec.suspend==true) | [.metadata.name,.spec.suspend] | @tsv' | jq -r '.items[] | select(.spec.suspend==true) | [.metadata.name,.spec.suspend] | @tsv'
| less | less -K