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 readiness conditions.

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

Checks if a Kubernetes Pod is ready. This function determines readiness based on either the Pod's overall ready condition or the readiness of its primary container, if specified.

Parameters

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

Returns

TypeDescription
boolTrue if the Pod is ready, false otherwise.