Skip to main content

IsPodReady

Checks if a Kubernetes pod is ready. It determines readiness based on the primary container's status if defined, otherwise it checks the pod's overall ready condition.

def IsPodReady(
pod: *v1.Pod
) - > bool

Checks if a Kubernetes pod is ready. This function determines pod readiness based on its primary container status or general pod conditions if no primary container is defined.

Parameters

NameTypeDescription
pod*v1.PodThe Kubernetes pod object to check for readiness.

Returns

TypeDescription
boolTrue if the pod is ready, false otherwise.