kaxil commented on a change in pull request #11815:
URL: https://github.com/apache/airflow/pull/11815#discussion_r519827705



##########
File path: airflow/models/renderedtifields.py
##########
@@ -81,6 +84,26 @@ def get_templated_fields(cls, ti: TaskInstance, session: 
Session = None) -> Opti
         else:
             return None
 
+    @classmethod
+    @provide_session
+    def get_k8s_pod_yaml(cls, ti: TaskInstance, session: Session = None) -> 
Optional[str]:

Review comment:
       Added test in f4b79c71f
   
   

##########
File path: airflow/models/taskinstance.py
##########
@@ -1668,6 +1689,26 @@ def render_templates(self, context: Optional[Context] = 
None) -> None:
 
         self.task.render_template_fields(context)
 
+    def render_k8s_pod_yaml(self) -> Optional[str]:

Review comment:
       Test added in f4b79c71f calls this method and verifies the generated POD 
JSON




----------------------------------------------------------------
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]


Reply via email to