kubed icon indicating copy to clipboard operation
kubed copied to clipboard

Customize the columns for Pod

Open ankitrgadiya opened this issue 5 months ago • 4 comments

Hello, thank you for building Kubed. It is very ergonomic and fits nicely in my workflow.

I'm facing this problem where the default Pod columns are a bit misleading specially if you're used to the kubectl output. For example, if a Pod is crashlooping, in the kubectl the Status column shows it as such. But because kubed is using the .status.phase, it still shows it as Running. Also the Restart column is not present leading to further confusion. In my use-case, it is not clear if the Pod is just not ready yet or if its actively CrashLooping.

Kubectl output:

NAME                                 READY   STATUS             RESTARTS           AGE
sample-pod-n979s                     0/1     CrashLoopBackOff   5108 (4m51s ago)   18

Kubed:

Name                                 Phase       Ready  Total Starttime
sample-pod-n979s                     Running         0      0 1

I can see the kubed-pod-columns variable but its a subset of what is defined in the kubed-define-resource macro call. I also tried to re-define the Pod object but that did not update the columns. Is there a way to customize the Columns for pre-defined resources?

ankitrgadiya avatar Jul 21 '25 14:07 ankitrgadiya