Skip to content

ApiServer ConfigMap is not mounted #52632

@scali

Description

@scali

Official Helm Chart version

1.17.0 (latest released)

Apache Airflow version

3.0.2

Kubernetes Version

1.31.8

Helm Chart configuration

apiServer:
  apiServerConfigConfigMapName: "my-airflow-config"

Docker Image customizations

No response

What happened

If I use custom name for my api server config map :

kubectl create configmap -n airflow my-airflow-config \
  --from-file=webserver_config.py=configmap/webserver_config.py

and in chart :

apiServer:
  apiServerConfigConfigMapName: "my-airflow-config"

The deployment fails

What you think should happen instead

We should be able to add custom config map name (e.g. to respect the company naming convention)

💡 It seems to be related to this line in _helpers.yaml. Should the value of .Values.webserver.webserverConfigConfigMapName be replaced by .Values.apiServer.apiServerConfigConfigMapName ?

How to reproduce

Create an apiserver confimap with a custom name :

kubectl create configmap -n airflow my-airflow-config \
  --from-file=webserver_config.py=configmap/webserver_config.py

and add this value to the chart :

apiServer:
  apiServerConfig: ~
  apiServerConfigConfigMapName: "my-airflow-config"

Anything else

Workaround solution

It works if I use build-in name ( airflow-api-server-config) for my api server config map :

kubectl create configmap -n airflow airflow-api-server-config \
  --from-file=webserver_config.py=configmap/webserver_config.py
apiServer:
  apiServerConfigConfigMapName: "airflow-api-server-config"

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions