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