Skip to content

Conversation

@dgl
Copy link
Contributor

@dgl dgl commented Aug 19, 2022

I'm opening this as a draft, this is part of the needed support for user namespaces with Kubernetes. It lacks tests and general polish.

I've discussed this approach with @rata, it uses the existing labels used by fuse-overlayfs and makes them more general by adding a capability "remap-ids", I would like some initial thoughts on the idea.

Snapshotters would implement the capability, potentially conditionally (e.g. overlayfs would only return it if running on Linux >= 5.19).

cc @AkihiroSuda for fuse-overlayfs and @artqzn for pending PRs on related overlayfs parts.

This allows user namespace support to progress, either by allowing
snapshotters to deal with ownership, or falling back to containerd doing
a recursive chown.

Signed-off-by: David Leadbeater <[email protected]>
Co-authored-by: Rodrigo Campos <[email protected]>
@k8s-ci-robot
Copy link

Hi @dgl. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mikebrow
Copy link
Member

/ok-to-test

@dgl dgl force-pushed the dgl/remap-id-capab branch 2 times, most recently from 5abb24c to 93a73f9 Compare August 22, 2022 00:52
Signed-off-by: David Leadbeater <[email protected]>
@dgl dgl force-pushed the dgl/remap-id-capab branch from 93a73f9 to 212852d Compare August 22, 2022 01:07
@dgl dgl marked this pull request as ready for review August 29, 2022 03:52
@dgl
Copy link
Contributor Author

dgl commented Aug 29, 2022

The main point I'd be interested in feedback on is the interface; I've used the labels that were there already. The other option is adding something like the extensions pattern used in containerd.services.containers.v1 to snapshots as that could avoid the string parsing and gain type safety.

@estesp estesp added the area/cri Container Runtime Interface (CRI) label Oct 14, 2022
@dgl
Copy link
Contributor Author

dgl commented Nov 18, 2022

Covered by rata's PR now.

@dgl dgl closed this Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) ok-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants