jscheffl commented on code in PR #61798:
URL: https://github.com/apache/airflow/pull/61798#discussion_r2869555754


##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/cli/kubernetes_command.py:
##########
@@ -72,7 +72,12 @@ def generate_pod_yaml(args):
         dr = DagRun(dag.dag_id, execution_date=logical_date)
         dr.run_id = DagRun.generate_run_id(run_type=DagRunType.MANUAL, 
execution_date=logical_date)
 
-    kube_config = KubeConfig()
+    executor_conf = None
+    if hasattr(args, "team") and args.team:

Review Comment:
   In other places we used `AIRFLOW_V_3_2_PLUS` to check which version we are 
running on. Compared to the check for args this would allow us to clean the 
variatios of code once (in the future) we drop support for Airflow < 3.2.
   
   Can you change it like this?
   
   ```suggestion
       if AIRFLOW_V_3_2_PLUS and args.team:
   ```



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

Reply via email to