You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The AGE column for Containers is calculated from po.GetCreationTimestamp(), which means it is the same for all containers in a pod since it's actually showing the pod's age instead of the containers' ages.
To Reproduce
Steps to reproduce the behavior:
Go to any pod with multiple containers. Even better if they have init containers, which are more likely to have different start times.
View the AGE column
All the containers will have the same age. Compare this with the YAML where it shows they actually have different start times in the InitContainerStatuses and ContainerStatuses.
Expected behavior
Instead, I think AGW should be calculated from the po.Status.ContainerStatuses[index].State.Running.StartedAt or po.Status.ContainerStatuses[index].State.Terminated.StartedAt, and null when po.Status.ContainerStatuses[index].State.Waiting != nil`.
For init containers, it should useInitContainerStatuses and limit the age to FinishedAt in the case of a terminated init container.
Screenshots Current Behavior:
Desired Behavior:
Versions (please complete the following information):
OS: OSX
K9s Rev: v0.32.5
K8s Rev: v1.28.12-eks-2f46c53
The text was updated successfully, but these errors were encountered:
averni
added a commit
to averni/k9s
that referenced
this issue
Oct 12, 2024
Describe the bug
The
AGE
column for Containers is calculated frompo.GetCreationTimestamp()
, which means it is the same for all containers in a pod since it's actually showing the pod's age instead of the containers' ages.To Reproduce
Steps to reproduce the behavior:
InitContainerStatuses
andContainerStatuses
.Expected behavior
Instead, I think AGW should be calculated from the
po.Status.ContainerStatuses[index].State.Running.StartedAt
orpo.Status.ContainerStatuses[index].State.Terminated.StartedAt
, andnull
when po.Status.ContainerStatuses[index].State.Waiting != nil`.For init containers, it should use
InitContainerStatuses
and limit the age toFinishedAt
in the case of a terminated init container.Screenshots
Current Behavior:
Desired Behavior:
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: