seanghaeli commented on code in PR #75251:
URL: https://github.com/apache/airflow/pull/75251#discussion_r4356892624
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/cli/kubernetes_command.py:
##########
@@ -148,7 +149,8 @@ def _get_pod_completion_time(pod):
@providers_configuration_loaded
def cleanup_pods(args):
"""Clean up k8s pods in evicted/failed/succeeded/pending states."""
- namespace = args.namespace
+ team_name = args.team
+ namespace = args.namespace or conf.get("kubernetes_executor", "namespace",
**_team_kwargs(team_name))
Review Comment:
Added the 3.2 check
--
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]