kustomize-controller icon indicating copy to clipboard operation
kustomize-controller copied to clipboard

add spec.suspend to Kustomization printer columns

Open schrej opened this issue 3 years ago • 5 comments

This adds spec.suspend to the default columns of Kustomization.

It's currently hard to find Kustomizations that are suspended, and I think that's a pretty common use-case when leveraging that feature. It's currently a default column as it's pretty slim anyway, but it could also be set to only show for -o wide.

The PR also moves the Status column to the end, after Age, since the messages are very long in error cases, which makes the columns behind it hard to find, and breaks up the table header as well.

schrej avatar Feb 04 '22 13:02 schrej

flux get kustomization does have the suspended field and the Git SHAs are trimmed. Any reason for not using Flux CLI?

stefanprodan avatar Feb 04 '22 13:02 stefanprodan

Oh, true, I forgot that flux get exists :grimacing: But it's just a habit (in my case) to use kubectl as the primary method for interacting with resources, and I'd argue that it would be more convenient like this.

schrej avatar Feb 04 '22 13:02 schrej

The suspend field is preset in almost all Flux APIs. Please open an issue in flux2 with a proposal to change this in a consistent manner. If the maintainers of all Flux controllers are supportive of this change, then we need to open PRs everywhere and ship this as a whole in the next Flux minor release.

stefanprodan avatar Feb 04 '22 13:02 stefanprodan

Looking forward to this as well. We use k9s extensively and having the suspended column would be very helpful!

ntx-ben avatar Oct 12 '23 14:10 ntx-ben

flux get kustomization does have the suspended field and the Git SHAs are trimmed. Any reason for not using Flux CLI?

would help with k9s integration

jflambert avatar Oct 12 '23 14:10 jflambert