How to use the Pod conditions array returned from the client-go API? How to use the Pod conditions array returned from the client-go API? kubernetes kubernetes

How to use the Pod conditions array returned from the client-go API?


The Pod didn't transition from ContainersReady to Ready, the ConditionStatus of those PodConditionTypes change from False to True.
The PodCondition array holds the details about each ConditionType, but they are not correlated, and you shouldn't rely on the order of the PodCondition updates.
Instead, you can monitor the details of each PodCondition that interests you.

If you just want to know if the pod is running or not, take a look at PodPhase. It's also part of the PodStatus struct.