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



##########
File path: airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
##########
@@ -271,6 +273,21 @@ 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.
+
+        @param env_vars: a list of k8s.V1EnvVar objects
+        @return: A list of k8s.V1EnvVar objects but with the "template_fields" 
member populated

Review comment:
       ```suggestion
           :param env_vars: a list of k8s.V1EnvVar objects
           :return: A list of k8s.V1EnvVar objects but with the 
"template_fields" member populated
   ```




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