-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Support disabling helm hooks on extraConfigMaps and extraSecrets #40294
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
d5370f3
to
ee0238a
Compare
cffa5f6
to
a6a18ee
Compare
bc5ed76
to
57070ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, we don't get the default annotations because we dont have the key useHelmHooks in the values.yaml.
Can u add it please?
Hey @romsharon98 🙂 Since its custom configMaps / secrets controlled by the users, I couldn't really add a default of I've checked and also added tests for it, there's the I've also updated the Am I missing anything? 🤔 |
57070ed
to
70968b8
Compare
Thanks for clarify it to me 😄. After your clarification this looks good! |
70968b8
to
88b27d5
Compare
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
Description
As mentioned in #17447:
Currently it is not possible to avoid the default Helm annotations on resources such as
extraConfigMaps
andextraSecrets
and there's no way in ArgoCD to override / ignore those default hooks.This issue might be related to ArgoCD’s behavior, though it is not certain, but it can result in pods entering
CreateContainerConfigError
state during updates like when the scheduler is trying to boot up new tasks or when new Airflow pods are created that depend on extra secrets / configMaps, which the hooks have just deleted.Solution:
The fix in this PR takes after the same approach and conventions used in PR #18776 for the
migrateDatabaseJob
andcreateUserJob
resources by usinguseHelmHooks
flag to decide whether or not to add the Helm hooks annotations.Changes
useHelmHooks=false
(by default the annotations are added)^ 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.