airflow.providers.cncf.kubernetes.utils.container¶
Helper functions for inspecting and interacting with containers in a Kubernetes Pod.
Functions¶
|
Retrieve container status. |
|
Examine V1Pod |
|
Examine V1Pod |
|
Examine V1Pod |
|
Examine V1Pod |
|
Examine V1Pod |
|
Module Contents¶
- airflow.providers.cncf.kubernetes.utils.container.get_container_status(pod, container_name)[source]¶
Retrieve container status.
- airflow.providers.cncf.kubernetes.utils.container.container_is_running(pod, container_name)[source]¶
Examine V1Pod
podto determine whethercontainer_nameis running.If that container is present and running, returns True. Returns False otherwise.
- airflow.providers.cncf.kubernetes.utils.container.container_is_completed(pod, container_name)[source]¶
Examine V1Pod
podto determine whethercontainer_nameis completed.If that container is present and completed, returns True. Returns False otherwise.
- airflow.providers.cncf.kubernetes.utils.container.container_is_succeeded(pod, container_name)[source]¶
Examine V1Pod
podto determine whethercontainer_nameis completed and succeeded.If that container is present and completed and succeeded, returns True. Returns False otherwise.
- airflow.providers.cncf.kubernetes.utils.container.container_is_wait(pod, container_name)[source]¶
Examine V1Pod
podto determine whethercontainer_nameis waiting.If that container is present and waiting, returns True. Returns False otherwise.