-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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 helm chart worker deployment without kerberos #11681
Fix helm chart worker deployment without kerberos #11681
Conversation
@potiuk Should we add unit tests? Did your patch with kerberos have the unittest? |
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*. |
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*. |
Yes it had. Those are the very tests that are failing now :). So having tests did not help in this case. |
I'll add a commit to fix the tests soon. |
@FloChehab The unit tests need updating. Also We have a discussion in #11657 about better unit tests for the chart. I would really love to hear your opinion as a "newcomer" whether the current unit tests are easy to understand and maintain and how do they compare to the proposal by @mik-laj in this issue. |
I don't have experience with chart testing in general ; I'll play with the current setup for this PR (and the other ones that I have opened / will open) and try to give feedback. |
Helm tests should be fixed (at least this part of the CI is green). |
Hello. We have a new test framework for Helm Chart. Can you add unit tests? Best regards, |
Follow up to apache#11130 : we shouldn't mount the `kerberos-keytab` volume in the worker deployment if we are not using kerberos in the first place. (the previous behavior is breaking the chart)
a3e3266
to
0369f63
Compare
Hello, I've rebased on master and added a test to prevent kerberos from being mentioned in the render if it's not enabled (except in airflow's configmap because it would be a bit hard to change this behavior. I'll be happy to adapt if necessary. |
The PR should be OK to be merged with just subset of tests as it does not modify Core of Airflow. The committers might merge it or can add a label 'full tests needed' and re-run it to run all tests if they see it is needed! |
Thanks for the merge ! |
Follow up to apache#11130 : we shouldn't mount the `kerberos-keytab` volume in the worker deployment if we are not using kerberos in the first place. (the previous behavior is breaking the chart)
Follow up to apache#11130 : we shouldn't mount the `kerberos-keytab` volume in the worker deployment if we are not using kerberos in the first place. (the previous behavior is breaking the chart) (cherry picked from commit 4c54718)
Hello,
A small follow up to #11130 after some tests on the new chart : we shouldn't mount the
kerberos-keytab
volumein the worker deployment if we are not using
kerberos in the first place.
(the previous behavior is breaking the chart)
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.