jonathan-ostrander commented on code in PR #39694:
URL: https://github.com/apache/airflow/pull/39694#discussion_r1608579117


##########
airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -842,16 +838,14 @@ def cleanup(self, pod: k8s.V1Pod, remote_pod: k8s.V1Pod):
         if self._killed or not remote_pod:
             return
 
-        istio_enabled = self.is_istio_enabled(remote_pod)
         pod_phase = remote_pod.status.phase if hasattr(remote_pod, "status") 
else None
 
         # if the pod fails or success, but we don't want to delete it
         if pod_phase != PodPhase.SUCCEEDED or self.on_finish_action == 
OnFinishAction.KEEP_POD:
             self.patch_already_checked(remote_pod, reraise=False)
 
-        failed = (pod_phase != PodPhase.SUCCEEDED and not istio_enabled) or (
-            istio_enabled and not container_is_succeeded(remote_pod, 
self.base_container_name)
-        )
+        # Consider pod failed if the pod has not succeeded and the base 
container within the pod has not succeeded
+        failed = pod_phase != PodPhase.SUCCEEDED and not 
container_is_succeeded(remote_pod, self.base_container_name)

Review Comment:
   Updated the behavior to only check base container state in 
67f720188944ec4f59aac1d8c8704e21907196a8



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to