Skip to content

Conversation

@henry3260
Copy link
Contributor

@henry3260 henry3260 commented Jan 12, 2026

Was generative AI tooling used to co-author this PR?

  • Yes (please specify the tool below)
    copilot

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Jan 12, 2026
@henry3260 henry3260 marked this pull request as ready for review January 15, 2026 19:49
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Cool! Thanks!

@jscheffl jscheffl merged commit 4dbe9b2 into apache:main Jan 15, 2026
182 checks passed
@jscheffl jscheffl added this to the Airflow Helm Chart 1.19.0 milestone Jan 15, 2026
Copy link
Contributor

@Miretpl Miretpl left a comment

Choose a reason for hiding this comment

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

@henry3260 there are some things which I believe could be improved to make moving this section consistent with previously moved sections. Could you take a look?


{{- end }}

{{- if not (empty .Values.workers.kerberosInitContainer) }}
Copy link
Contributor

@Miretpl Miretpl Jan 15, 2026

Choose a reason for hiding this comment

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

Is there any scenario that this condition will not be met? Cause I believe there isn't, and I think we should not print a deprecation message if the user will not use the deprecated section (e.g. that situation is when the section has all default values set).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there any scenario that this condition will not be met? Cause I believe there isn't, and I think we should not print a deprecation message if the user will not use the deprecated section (e.g. that situation is when the section has all default values set).

Indeed, maybe we should print a deprecation message {{- if .Values.workers.kerberosInitContainer.enabled }}? WDYT

Copy link
Contributor

Choose a reason for hiding this comment

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

WIll be good

"""Test that workers.celery.kerberosInitContainer configuration works and takes precedence."""
docs = render_chart(
values={
"airflowVersion": "2.8.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think its not needed, it should work on default Airflow version

Comment on lines +989 to +995
"workers": {
**workers_values,
"celery": {
**workers_values.get("celery", {}),
"persistence": {"fixPermissions": True},
},
},
Copy link
Contributor

Choose a reason for hiding this comment

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

"workers": workers_values

persistence is not required for kerberosInitContainer to be present

Comment on lines +1000 to +1004
initContainers = jmespath.search("spec.template.spec.initContainers", docs[0])
# Should have 3 init containers: wait-for-migrations, kerberos-init, volume-permissions
assert len(initContainers) == 3
assert initContainers[1]["name"] == "kerberos-init"
assert initContainers[1]["args"] == ["kerberos", "-o"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Personally, I would split tests to test particular arguments and this one left only for testing enabled flag

Comment on lines +1169 to +1173
securityContexts:
container: {}

# Container level lifecycle hooks
containerLifecycleHooks: {}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see that these sections are used anywhere. Am I missing something?

{{- end }}
{{- end }}
{{- if and (semverCompare ">=2.8.0" .Values.airflowVersion) .Values.workers.kerberosInitContainer.enabled }}
{{- $kerberosInitContainerEnabled := or (.Values.workers.celery.kerberosInitContainer).enabled (.Values.workers.kerberosInitContainer).enabled }}
Copy link
Contributor

Choose a reason for hiding this comment

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

This behaviour does not match the behaviour which was previously done. for moving workers to workers.celery/kubernetes. Regarding the behaviour for false flag you can check #60238

vighneshtule pushed a commit to vighneshtule/airflow that referenced this pull request Jan 16, 2026
@henry3260
Copy link
Contributor Author

@Miretpl I opened another pr to address this problem #60677
Thanks for reviewing

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.

3 participants