You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/23 03:08:53 UTC

[GitHub] [airflow] uranusjr commented on a diff in pull request #25829: Fix templating for KubernetesPodOperator env_vars field

uranusjr commented on code in PR #25829:
URL: https://github.com/apache/airflow/pull/25829#discussion_r952109246


##########
airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py:
##########
@@ -409,6 +425,12 @@ def extract_xcom(self, pod: k8s.V1Pod):
             self.log.info("xcom result: \n%s", result)
             return json.loads(result)
 
+    def pre_execute(self, context):
+        if isinstance(self.env_vars, str):
+            self.env_vars = convert_env_vars(ast.literal_eval(self.env_vars.strip()))

Review Comment:
   What is the expected format of `self.env_vars` 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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org