Vasu-Madaan commented on PR #53477:
URL: https://github.com/apache/airflow/pull/53477#issuecomment-3506302591
values passed to the opertor:
```
kpo_task = KubernetesPodOperator(
task_id="kpo_with_none_label",
namespace="vasu",
#image="faulty:latest30",
image="alpine:latest",
cmds=["sh", "-c"],
arguments=["echo 'Starting...'; sleep 60; echo 'Done sleeping'"],
# This label with a `None` value triggers the bug
labels={"foo": "bar", "a": None},
name="kpo-none-label-test",
#on_finish_action="delete_pod",
# Ensure a new pod is created each time to reliably test deletion
reattach_on_restart=False,
config_file="/files/.kube/config.yml"
)
```
Labels in actual K8s pod:
```
Labels: a=
airflow_kpo_in_cluster=False
airflow_version=3.2.0
dag_id=kpo_none_label_bug_report
foo=bar
kubernetes_pod_operator=True
run_id=manual__2025-11-08T0935380000-620774077
task_id=kpo_with_none_label
try_number=1
```
--
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]