k9s icon indicating copy to clipboard operation
k9s copied to clipboard

status.conditions for CR should be displayed as a list in the Describe view

Open yzgyyang opened this issue 4 months ago • 7 comments




Is your feature request related to a problem? Please describe. It's sometimes confusing to look at the list of status.conditions in the Describe view, they should be a list in -o yaml.

Describe the solution you'd like Lists under "Status" should be properly displayed as a list.

Describe alternatives you've considered N/A

Additional context For example, here is a DatadogMetric Custom Resource's Describe vs Edit:

image image

yzgyyang avatar Mar 01 '24 20:03 yzgyyang

Hello @yzgyyang,

I believe the describe functionality uses whatever string is returned by the Kubernetes API, without trying to transform it from a list into anything else, but I'll have a look to be sure. Meanwhile, can you provide a CRD YAML so I try to reproduce this?

placintaalexandru avatar Mar 02 '24 13:03 placintaalexandru

At least for me, using the latest release 0.32, it works as expected for the ArgoCD ApplicationSet Custom Resource.

image

Skaronator avatar Mar 02 '24 21:03 Skaronator

@yzgyyang, may I know which k9s version you have?

placintaalexandru avatar Mar 02 '24 22:03 placintaalexandru

@placintaalexandru I'm using the latest v0.32.3. Weirdly, when I tried an ApplicationSet CR, it's also doing weird things - the conditions are not showed as a list, but another difference that I spotted is that the "keys" somehow got more "human readable" which is not something that I want (LastTransitionTime <-> Last Transition Time).

image

I wonder if there is some config that I missed?

If it helps, I'm on OS: macOS 14.3.1 23D60 arm64.

yzgyyang avatar Mar 06 '24 22:03 yzgyyang

ok, i can reproduce the issue even with v0.32.4 I'll have a look at it

placintaalexandru avatar Apr 16 '24 21:04 placintaalexandru

@yzgyyang this is the default kubernetes API behavior: k9s just takes whatever the API returns, splits by \n and that's what it displays

placintaalexandru avatar Apr 18 '24 21:04 placintaalexandru