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
| Name | Type | Description |
|---|---|---|
| pod | *v1.Pod | The Kubernetes Pod object to check for readiness. |
Returns
| Type | Description |
|---|---|
bool | True if the Pod is ready, false otherwise. |