amoghrajesh commented on code in PR #77523:
URL: https://github.com/apache/airflow/pull/77523#discussion_r4678756735
##########
task-sdk/tests/task_sdk/serde/test_serde.py:
##########
@@ -335,6 +336,15 @@ def test_serder_dataclass(self):
d = deserialize(e)
assert i.x == getattr(d, "x", None)
+ def test_kubernetes_pod_with_legacy_values(self):
+ encoded = {
+ CLASSNAME: qualname(k8s.V1Pod),
+ VERSION: 1,
+ DATA: {"metadata": {"name": "foo", "labels": {"a": 1}}},
+ }
+
+ assert deserialize(encoded) ==
k8s.V1Pod(metadata=k8s.V1ObjectMeta(name="foo", labels={"a": "1"}))
Review Comment:
Handled in [review comments from
Dev-il](https://github.com/apache/airflow/pull/77523/commits/417e25a12139496fc71fa30d6d3dc03d379a4dd3)
--
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]