XD-DENG commented on code in PR #25882:
URL: https://github.com/apache/airflow/pull/25882#discussion_r985508556
##########
airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py:
##########
@@ -370,11 +370,11 @@ def find_pod(
label_selector=label_selector,
).items
- pod = None
+ pod: Optional[k8s.V1Pod] = None
num_pods = len(pod_list)
if num_pods > 1:
Review Comment:
Does it also mean: if more than one pod are found here, we can actually use
the name to match & find the Pod we desire and then proceed, rather than
raising an exception?
--
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]