kaxil commented on a change in pull request #14083:
URL: https://github.com/apache/airflow/pull/14083#discussion_r570507670
##########
File path: airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
##########
@@ -271,6 +273,22 @@ def __init__( # pylint:
disable=too-many-arguments,too-many-locals
self.client: CoreV1Api = None
self.pod: k8s.V1Pod = None
+ def add_template_fields_to_env_vars(self, env_vars):
+ """
+ Adds the field `templated_fields` to V1EnvVar so that Airflow can
apply jinja templating
+ to both the name and value of an environment variable.
+
+ Addresses https://github.com/apache/airflow/issues/13348
+ @param env_vars:
+ @return:
Review comment:
This needs fixing
----------------------------------------------------------------
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]