jedcunningham commented on a change in pull request #19949:
URL: https://github.com/apache/airflow/pull/19949#discussion_r779139138
##########
File path: airflow/executors/kubernetes_executor.py
##########
@@ -737,7 +737,7 @@ def _adopt_completed_pods(self, kube_client:
client.CoreV1Api) -> None:
kube_client.patch_namespaced_pod(
name=pod.metadata.name,
namespace=pod.metadata.namespace,
- body=PodGenerator.serialize_pod(pod),
+ body={"metadata": {"labels": {"airflow-worker":
pod.metadata.labels['airflow-worker']}}},
Review comment:
Maybe we shouldn't mutate `pod` above and either use a variable or call
`make_safe_label_value` here?
--
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]