Listing flux suspended resources #2494
Replies: 5 comments
-
I don't think we have this feature yet, but it is a good idea! There are some PRs recently related to printer interface, I am not sure if that will be helpful or on the way; But for example, if there was a way to call |
Beta Was this translation helpful? Give feedback.
-
Ended up here from googling "flux get suspended list" so yes, would love that functionality. |
Beta Was this translation helpful? Give feedback.
-
@kingdonb hi! Just added this as k9s plugins, and just made a PR to have them included... till k9s allows us to add custom columns based on .spec in their views... derailed/k9s#1584
|
Beta Was this translation helpful? Give feedback.
-
While I agree that having such a selector in the |
Beta Was this translation helpful? Give feedback.
-
Should this discussion be turned into an issue? I don't suppose any work was done on this? Meanwhile, the following works well enough (as long as the output doesn't change in future flux versions!)
|
Beta Was this translation helpful? Give feedback.
-
Whats the best option to list all suspended resources ?
The flux get supports a
--status-selector
which does not cover the spec.suspend condition.One option is to post-process the output to filter on suspended=false
flux get all
output$ kubectl get --all-namespaces kustomizations.kustomize.toolkit.fluxcd.io -o json | jq -r '.items[] | select(.spec.suspend==true) | [.metadata.name,.spec.suspend] | @tsv'
Would be great to have a built-in way to select suspended resources.
Beta Was this translation helpful? Give feedback.
All reactions