kaxil commented on a change in pull request #11815:
URL: https://github.com/apache/airflow/pull/11815#discussion_r517600098
##########
File path: airflow/models/taskinstance.py
##########
@@ -1665,6 +1665,33 @@ def render_templates(self, context: Optional[Context] =
None) -> None:
self.task.render_template_fields(context)
+ def render_k8s_pod_yaml(self) -> Optional[str]:
+ """Render k8s pod yaml"""
+ from kubernetes.client.api_client import ApiClient
+
+ from airflow.executors.kubernetes_executor import KubeConfig,
create_pod_id
+ from airflow.kubernetes.pod_generator import PodGenerator
+ from airflow.settings import pod_mutation_hook
Review comment:
any reason these imports are 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.
For queries about this service, please contact Infrastructure at:
[email protected]