Search code examples
kubernetesairflowjinja2kubernetes-helm

User Environment Variable with airflow.webserver.defaultUser.password


I am using the Helm chart for Apache Airflow and trying to set the password of the default user to the value of an environment variable:

airflow:
  env:
    - name: PASSWORD
      value: Hello, World!
  webserver:
    defaultUser:
      password: $PASSWORD

However, this is setting the password to literally $PASSWORD instead of Hello, World!.

I have tried other things like password: ${PASSWORD} to no avail.


Solution

  • Use as follow, this is as described in official examples.

    $(PASSWORD)