kaxil commented on a change in pull request #12451:
URL: https://github.com/apache/airflow/pull/12451#discussion_r526183868
##########
File path:
airflow/providers/cncf/kubernetes/backcompat/backwards_compat_converters.py
##########
@@ -129,3 +139,33 @@ def convert_configmap(configmaps) -> k8s.V1EnvFromSource:
:return:
"""
return
k8s.V1EnvFromSource(config_map_ref=k8s.V1ConfigMapEnvSource(name=configmaps))
+
+
+def convert_affinity(affinity) -> k8s.V1Affinity:
+ """
+ Converts a dict into an k8s.V1Affinity
+
+ :param affinity:
+ :return:
+ """
+ return _convert_from_dict(affinity, k8s.V1Affinity)
+
+
+def convert_node_selector(node_selector) -> k8s.V1NodeSelector:
+ """
+ Converts a dict into an k8s.V1NodeSelector
+
+ :param node_selector:
Review comment:
This is empty
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]