Skip to content

Connections and variables are not being created based on extraSecrets and extraConfigMaps #34646

@belaytzev

Description

@belaytzev

Official Helm Chart version

1.10.0 (latest released)

Apache Airflow version

v2.7.1

Kubernetes Version

1.27

Helm Chart configuration

No response

Docker Image customizations

install apache-airflow[postgres,amazon,cncf.kubernetes,daskexecutor]

What happened

I configured extraSecrets and extraConfigMaps for my PostgreSQL connection and some additional variables. I also added extraEnvFrom to attach those extras to Airflow containers.

extraSecrets:
  '{{ .Release.Name }}-airflow-connections':
    type: 'Opaque'
    data: |
      AIRFLOW_CONN_MY_DB: 'base64_encoded_my_db_string'

extraConfigMaps:
  '{{ .Release.Name }}-airflow-variables':
    data: |
      AIRFLOW_VAR_MY_VAR: 'my_var_string'

extraEnvFrom: |
  - secretRef:
      name: '{{ .Release.Name }}-airflow-connections'
  - configMapRef:
      name: '{{ .Release.Name }}-airflow-variables'

Variables are typically added to containers in Airflow, but they do not affect the parameters.

airflow@apache-airflow-webserver:/opt/airflow$ airflow connections list
No data found
airflow@apache-airflow-webserver:/opt/airflow$ airflow variables list
No data found
airflow@apache-airflow-webserver:/opt/airflow$ airflow version
2.7.1
airflow@apache-airflow-webserver:/opt/airflow$ printenv | grep AIRFLOW_CONN
AIRFLOW_CONN_MY_DB=postgres://user:pass@host:5432
airflow@apache-airflow-webserver:/opt/airflow$ printenv | grep AIRFLOW_VAR
AIRFLOW_VAR_MY_VAR=my_var

What you think should happen instead

No response

How to reproduce

Install helm chart with extraSecrets, extraConfigMaps and extraEnvFrom

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:helm-chartAirflow Helm Chartkind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions