From dae2590e0feef190e8d51f43415ade47230f9ab4 Mon Sep 17 00:00:00 2001 From: Pierce Staab Date: Wed, 21 Feb 2024 18:53:35 -0600 Subject: [PATCH] Update flux plugin to handle inactive context (#2542) * Update flux.yaml * Update flux.yaml --- plugins/flux.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/flux.yaml b/plugins/flux.yaml index cbe887d3..72a96555 100644 --- a/plugins/flux.yaml +++ b/plugins/flux.yaml @@ -183,10 +183,11 @@ plugins: - -c - >- kubectl get + --context $CONTEXT --all-namespaces helmreleases.helm.toolkit.fluxcd.io -o json | jq -r '.items[] | select(.spec.suspend==true) | [.metadata.namespace,.metadata.name,.spec.suspend] | @tsv' - | less + | less -K get-suspended-kustomizations: shortCut: Shift-S confirm: false @@ -199,7 +200,8 @@ plugins: - -c - >- kubectl get + --context $CONTEXT --all-namespaces kustomizations.kustomize.toolkit.fluxcd.io -o json | jq -r '.items[] | select(.spec.suspend==true) | [.metadata.name,.spec.suspend] | @tsv' - | less + | less -K