From e00fa357ceb2adda9a501eba5ae5848481458b12 Mon Sep 17 00:00:00 2001 From: markafarrell Date: Thu, 18 Sep 2025 03:19:05 +1000 Subject: [PATCH] add flux-operator resources to flux plugin (#3536) --- plugins/flux.yaml | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/plugins/flux.yaml b/plugins/flux.yaml index 78ad5ab8..7a14a91a 100644 --- a/plugins/flux.yaml +++ b/plugins/flux.yaml @@ -151,6 +151,74 @@ plugins: --context $CONTEXT -n $NAMESPACE $NAME | less -K + toggle-rset: + shortCut: Shift-T + confirm: false + scopes: + - resourcesets + description: Toggle to suspend or resume a ResourceSet + command: bash + background: false + args: + - -c + - >- + reconcile=$(kubectl --context $CONTEXT get resourceset -n $NAMESPACE $NAME -o=custom-columns='TYPE:.metadata.annotations.fluxcd\.controlplane\.io/reconcile' | tail -1); + verb=$([ $reconcile = "disabled" ] && echo "resume" || echo "suspend"); + flux-operator + $verb rset + --kube-context $CONTEXT + -n $NAMESPACE $NAME + | less -K + toggle-inputprovider: + shortCut: Shift-T + confirm: false + scopes: + - resourcesetinputprovider + description: Toggle to suspend or resume an InputProvider + command: bash + background: false + args: + - -c + - >- + reconcile=$(kubectl --context $CONTEXT get resourcesetinputprovider -n $NAMESPACE $NAME -o=custom-columns='TYPE:.metadata.annotations.fluxcd\.controlplane\.io/reconcile' | tail -1); + verb=$([ $reconcile = "disabled" ] && echo "resume" || echo "suspend"); + flux-operator + $verb inputprovider + --kube-context $CONTEXT + -n $NAMESPACE $NAME + | less -K + reconcile-rset: + shortCut: Shift-R + confirm: false + description: Flux reconcile + scopes: + - resourcesets + command: bash + background: false + args: + - -c + - >- + flux-operator + reconcile rset + --kube-context $CONTEXT + -n $NAMESPACE $NAME + | less -K + reconcile-inputprovider: + shortCut: Shift-R + confirm: false + description: Flux reconcile + scopes: + - resources + command: bash + background: false + args: + - -c + - >- + flux-operator + reconcile inputprovider + --kube-context $CONTEXT + -n $NAMESPACE $NAME + | less -K trace: shortCut: Shift-P confirm: false