ndellosa95 opened a new issue, #66624: URL: https://github.com/apache/airflow/issues/66624
### Under which category would you file this issue? Providers ### Apache Airflow version 3.2.0 ### What happened and how to reproduce it? [KubernetesPodTrigger only looks at the state of the base container](https://github.com/apache/airflow/blob/c51127ef435799449d013711d6205b44d52c72c2/providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/triggers/pod.py#L497-L509) when polling for state instead of the state of the pod itself. If you include an init container and that container fails, the base container stays in waiting state forever and the trigger never completes. ### What you think should happen instead? The trigger should look at the overall state of the pod and complete when the pod moves to a terminal state. ### Operating System Not Applicable ### Deployment Astronomer ### Apache Airflow Provider(s) cncf-kubernetes ### Versions of Apache Airflow Providers 10.16.1 ### Official Helm Chart version Not Applicable ### Kubernetes Version Not Applicable ### Helm Chart configuration _No response_ ### Docker Image customizations _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
