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 2021/01/31 01:46:37 UTC

[GitHub] [airflow] andreychernih edited a comment on issue #13522: Templated Variables being treated as String by KubernetesPodOperator in Airflow 2.0

andreychernih edited a comment on issue #13522:
URL: https://github.com/apache/airflow/issues/13522#issuecomment-770311126


   Having a similar issue with the only difference in my case is that I pass the `env_vars` directly to `KubernetesPodOperator`:
   
   ```
   download_task = KubernetesPodOperator(
      ...,
      env_vars = {
        'START_DATE': '{{ execution_date.strftime("%Y-%m-%d") }}',
      }
   )
   ```
   
   It is passing the actual `{{ execution_date.strftime("%Y-%m-%d") }}` instead of rendering the template. I am using the official apache/airflow:2.0.0-python3.8 Docker image..


----------------------------------------------------------------
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:
users@infra.apache.org