-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Labels
area:helm-chartAirflow Helm ChartAirflow Helm Chartkind:bugThis is a clearly a bugThis is a clearly a bug
Description
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.pyand 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.pyand 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.pyapiServer:
apiServerConfigConfigMapName: "airflow-api-server-config"Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
pjo-stv
Metadata
Metadata
Assignees
Labels
area:helm-chartAirflow Helm ChartAirflow Helm Chartkind:bugThis is a clearly a bugThis is a clearly a bug