Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make default helm annotations optional on extra cm and secrets #37893

Closed

Conversation

sudeepgupta90
Copy link
Contributor

@sudeepgupta90 sudeepgupta90 commented Mar 5, 2024

Make default helm hook annotations on extra configmaps and secrets to be optional. Currently, they are always enabled, and there's no way to turn them off. This aligns the chart with similar pattern as observed in the db-migrations and create-user job. The user however will now have to specify explicitly if they want add the hooks or not with the useHelmHooks in the manifest as boolean values can not be defaulted


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

{{- toYaml $configMapContent.annotations | nindent 4 }}
{{- end }}
{{- $annotations := dict }}
{{- if $configMapContent.useHelmHooks }}
Copy link
Member

Choose a reason for hiding this comment

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

If we do this, we must do it in such a way that we fall back to true if not specified for backcompat. And have test coverage for it.

@jedcunningham
Copy link
Member

Thanks for the PR @sudeepgupta90! This has been added in #40294.

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