Add missing support for: securityContexts and containerLifecycleHooks#60677
Add missing support for: securityContexts and containerLifecycleHooks#60677jscheffl merged 5 commits intoapache:mainfrom
Conversation
|
@Miretpl To ensure the fallback logic works properly with the standard has check, I believe we should remove the default enabled: false in values.yaml (leaving it unset/nil). Otherwise, the default value overrides the old configuration in tests. WDYT?" |
|
@henry3260, the change in chart behaviour is by intent (there was a discussion in #59730), so currently, we want to make sure that the behaviour will be the same for every Behaviour same as in already moved configs means:
For simple examples for the above points, you can take a look at (also in terms of what is changed, how and where): If you have further questions, feel free to ask! |
Miretpl
left a comment
There was a problem hiding this comment.
As I was here, I've made a quick review of the current state to not be late like last time :D
Many thanks for your kind guidance!!! |
Okay! So we should update the tests by explicitly setting workers.celery.kerberosInitContainer to nil if we want to verify workers.kerberosInitContainer, assuming I understand correctly. |
Depends where. If you are testing the |
|
Hi @henry3260, can I finish this section? I need it for #60420, which I would like to finish and properly tested today |
Feel free |
Do you need my help to add additional test cases for securityContext and lifecycle? |
|
In my PR, I will leave |
|
I think that we came to conclustion in the mentioned PR, so for this one, you would need only add missing support for:
under + of course test cases for each. Will that be good? |
looks good! |
|
Hi @henry3260, getting back to this, we would need to implement the missing support, which I've mentioned somewhere above + test cases for them. If you have any questions, feel free to ask! |
Sorry for late update! I will complete this pr soon. |
|
No worries. Just letting you know that we can get back to this after 1.19.0 was released, so take your time |
Hi @Miretpl , feel free to share your thoughts when you have time :) |
Miretpl
left a comment
There was a problem hiding this comment.
In general looks good! Thanks for the change. Just small nits
+ could you add a test cases in airflow_core/test_worker_sets.py for overwrite of these two parameters by worker sets feature?
helm-tests/tests/helm_tests/airflow_aux/test_pod_template_file.py
Outdated
Show resolved
Hide resolved
helm-tests/tests/helm_tests/airflow_aux/test_pod_template_file.py
Outdated
Show resolved
Hide resolved
…apache#60677) * keep consistency * support kerberos init securityContext/lifecycle in workers
…apache#60677) * keep consistency * support kerberos init securityContext/lifecycle in workers
Keep consistency with the previous PR like #60238
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.