-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
[AIRFLOW-5641] support running git sync container as root #6312
Conversation
0479cab
to
8bd02cd
Compare
Codecov Report
@@ Coverage Diff @@
## master #6312 +/- ##
==========================================
+ Coverage 80.34% 80.35% +<.01%
==========================================
Files 616 616
Lines 35733 35734 +1
==========================================
+ Hits 28711 28713 +2
+ Misses 7022 7021 -1
Continue to review full report at Codecov.
|
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.
Test that if the git_sync_run_as_user is not specified at all that we still set the default of 65533 please
@ashb I tried testing that, Airflow exited on error because that config key exists in default config, so it is required. |
Turns out I was setting gi_sync_run_as_user to None, which was causing the crash. I have added a test case to avoid setting this config key entirely, which results in the default 65533 uid. |
This is only a problem against master right? (The code looks quite different on the release branch) |
Marking this for inclusion in 1.10.11 -- but that depends on @dimberman's backporting work. |
(cherry picked from commit 133085e)
(cherry picked from commit 133085e)
(cherry picked from commit 133085e)
(cherry picked from commit 133085e)
Make sure you have checked all steps below.
Jira
Description
Fixed a regression that prevents user from using root as user for git sync container.
Also changed
_get_security_context_val
so that it behaves as documented.Tests
See changed files in tests folder
Commits
Documentation