Skip to content

Conversation

@GrumpyCat51
Copy link
Contributor


This MR adds the webserver_config.py file to the api server, similar to how it was included to the webserver in version <3. I've had to add the webserver_config.py file when configuring OAuth in my local setup, where it worked as expected.

Open question: In version <3, the webserver_config.py was mounted into all deployments (as well as the pod template for the KubernetesOperator) if defined. I didn't add it as I don't think it should be necessary, but please let me know if it has to be added

@eladkal eladkal requested a review from romsharon98 May 12, 2025 15:20
@GrumpyCat51
Copy link
Contributor Author

I think #50288 is related

resources: {{- toYaml .Values.apiServer.resources | nindent 12 }}
volumeMounts:
{{- include "airflow_config_mount" . | nindent 12 }}
{{- if or .Values.apiServer.apiServerConfig .Values.apiServer.apiServerConfigConfigMapName }}
Copy link
Contributor

@nhuantho nhuantho May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can integrate this logic into the schedule, workers, and trigger deployment.

Copy link
Contributor

@nhuantho nhuantho May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example in schedule depoyment:
{{- if or .Values.apiServer.apiServerConfig .Values.apiServer.apiServerConfigConfigMapName (semverCompare ">=3.0.0" .Values.airflowVersion) }}
{{- include "airflow_api_server_config_mount" . | nindent 12 }}
{{- end }}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But will it have an actual effect on the scheduler/worker/triggerer, or is it just making the chart unnecessarily more complex?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In version 2.10.5, those are mounted also (here for example) but I don't think there are really needed.

Maybe you should not include them ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I checked gain, so it is unnecessary. Thanks!

@jedcunningham
Copy link
Member

Hi @GrumpyCat51! #50108 was just merged that added this to the api server deployment only, but could you rebase this PR on main to get it on the rest of the components? Thanks!

@potiuk
Copy link
Member

potiuk commented Jun 9, 2025

Yeah. Conflicts need resolving in this one

@GrumpyCat51
Copy link
Contributor Author

I'll create a new MR, moving over the relevant changes

GrumpyCat51 pushed a commit to GrumpyCat51/airflow that referenced this pull request Jun 19, 2025
@GrumpyCat51
Copy link
Contributor Author

Will be continued in this MR due to change in scope: #51923

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:helm-chart Airflow Helm Chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants