-
Notifications
You must be signed in to change notification settings - Fork 97
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
Don't use root
as default user for exec_run
#431
Conversation
Hardcoding to the "root" user will ignore the user within the IMage, which I believe is wrong, so this seems like the proper change. |
Tests are blowing up, though. |
Looks unrelated to my changes? |
Thanks @aparcar for the pr We have the same pylint issue on another PR. I am taking a look but can't see what's the cause of the issue at a first glance. I am ok with the change but let's see if the test's flake disappears. Will come back later to this. |
/approved I have no idea why gating tests are failing? @jwhonce @lsm5 @umohnani8 Do you know what is going on? |
@rhatdan I am on it, PR with a fix in few minutes Quick explaination of whwat's happening. Currently, pylint is flaky. With this assumption, we know that sometimes pylint can be right even though it did not complain in the past for no apparent reason. While this can seem unrelated to this PR it could still be a perfectly valid complaint such for |
Linking for ref. Hopefully will see green lights |
@aparcar tests should be good now if you want to rebase and test it |
Instead use whatever user the container uses per default, which might be `root` but may also be something else. This avoids manually figuring out the default user in case some files inside the container are specifically owned by a non-root user. Signed-off-by: Paul Spooren <[email protected]>
Rebased |
LGTM |
/lgtm |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aparcar, inknos, lsm5 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Instead use whatever user the container uses per default, which might be
root
but may also be something else. This avoids manually figuring out the default user in case some files inside the container are specifically owned by a non-root user.