-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
fix: duplicated keys in annotations caused by airfowPodAnnotations value being overwritten by safeToEvict value of worker #40554
fix: duplicated keys in annotations caused by airfowPodAnnotations value being overwritten by safeToEvict value of worker #40554
Conversation
0028f3e
to
7426af2
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.
Could you add a test that fails without your fix?
Hi @hussein-awala, It's bit tricky to write a test to catch the key duplication as So that is the only valid test which comes to my mind. It fails without the change in this PR. I just added that in this commit, Please let me know if you had a better proposal. |
I realized probably I should add bit of an explanation on the solution as well.
For example here you can see value of in |
…lue being overwritten by safeToEvict value of worker (apache#40554)
as a result of
f9db9c9952
commit, value of.Values.airflowPodAnnotations
would be changed for all the other services, this would result in the services except workers, to have duplicatecluster-autoscaler.kubernetes.io/safe-to-evict
as the first one would point to thesafeToEvict
value of the service itself and the second to.Values.airflowPodAnnotations
which is overwritten by the pod template.closes: #40553