amoghrajesh commented on PR #53477:
URL: https://github.com/apache/airflow/pull/53477#issuecomment-3441301202
@Vasu-Madaan if you pass a {"a": None} in KPO, what labels does the pod get
created with. I second @dstandish opinion and ran a simple test with:
```python
k = KubernetesPodOperator(
namespace="default",
image="ubuntu:16.04",
cmds=["bash", "-cx"],
labels={"foo": "bar", "a": None},
name="test",
task_id="task",
in_cluster=in_cluster,
do_xcom_push=False,
)
```
And this is what I see in a unit test:
```python
{'a': None, 'airflow_kpo_in_cluster': 'True', 'airflow_version': '3.2.0',
'dag_id': 'dag', 'foo': 'bar', 'kubernetes_pod_operator': 'True', 'run_id':
'test', 'task_id': 'task', 'try_number': '0'}
```
Could you test how it gets spawned on K8s? I think we sanitise it in pod
manager, but just double checking.
--
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]