-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Support multiple uid/gid mappings #10722
Conversation
Skipping CI for Draft Pull Request. |
ed47d9f
to
0287d9b
Compare
@rata can you ptal? |
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.
@henry118 sorry for the delay, I was with urgent bugfixes for runc/containerd and then got sick and I'm just looking at this.
Would it be possible to split it in more atomic commits, so it is simpler to review? A 800+ lines change in a single commit is not the most trivial thing to do :)
Also, did you look at adding an e2e test for this? Or should this already be covered by the previous PR?
323d07b
to
c9d8ef4
Compare
Hi @rata, sorry for the late update. I was busy with other stuff for the last week.
Sure. I splitted the commit into multiple smaller ones. Hopefully it makes it easier to review :)
I did update the integration test (see the last commit) to cover the multiple remapper label case. I didn't touch CRI test cases because I didn't update CRI to use this feature. I think CRI integration can be a follow up effort. Please take another look at the changes. Thanks! |
Kindly ping @rata, also @fuweid @cpuguy83 @dmcgowan @AkihiroSuda if you can take a look as well. It would be great to have this in the 2.1 milestone. Thanks! |
) | ||
defer cancel() | ||
|
||
if ok, err := overlayutils.SupportsIDMappedMounts(); err != nil || !ok { |
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.
please consider putting this checker at the beginning of the function
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.
Will update this in the next revision.
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.
LGTM
Signed-off-by: Henry Wang <[email protected]>
Signed-off-by: Henry Wang <[email protected]>
Signed-off-by: Henry Wang <[email protected]>
Signed-off-by: Henry Wang <[email protected]>
…ntries Signed-off-by: Henry Wang <[email protected]>
Signed-off-by: Henry Wang <[email protected]>
This is a follow-up PR of the previous #10307 to support multiple id mappings for ID mapped mounts.
What's changed
What's not changed