Skip to content

bring read mappings proc into c/storage#1882

Merged
rhatdan merged 1 commit intocontainers:mainfrom
kannon92:add-read-mappings-proc
Apr 9, 2024
Merged

bring read mappings proc into c/storage#1882
rhatdan merged 1 commit intocontainers:mainfrom
kannon92:add-read-mappings-proc

Conversation

@kannon92
Copy link
Copy Markdown
Contributor

@kannon92 kannon92 commented Apr 9, 2024

As I was working on cri-o/cri-o#7990, I found that ReadMappingsProc was the only function that was missing from pkg/unshare.

@giuseppe mention that this would be a good candidate for c/storage.

This PR adds this function to pkg/unshare. Once this is released, we could drop this from podman.

Signed-off-by: Kevin Hannon <kehannon@redhat.com>
Copy link
Copy Markdown
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci openshift-ci bot added the approved label Apr 9, 2024
Copy link
Copy Markdown
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

second thoughts: should we just use GetHostIDMappings in Podman?

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 9, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kannon92
Once this PR has been reviewed and has the lgtm label, please assign tomsweeneyredhat for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot removed the approved label Apr 9, 2024
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Apr 9, 2024

@giuseppe they are trying to stop using Podman code.

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Apr 9, 2024

We could make Podman use this interface possibly?

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Apr 9, 2024

LGTM

@rhatdan rhatdan merged commit 21eb565 into containers:main Apr 9, 2024
@giuseppe
Copy link
Copy Markdown
Member

@giuseppe they are trying to stop using Podman code.

I understand that, but if we already have an existing function doing the same thing (as it seems to be GetHostIDMappings), we can just use that.

@kannon92 can you please try using GetHostIDMappings in CRI-O? If that works for you, we can drop ReadMappingsProc

@giuseppe
Copy link
Copy Markdown
Member

I've opened a PR for Podman to drop the function and use the existing function from c/storage: containers/podman#22328

We can do the same in CRI-O and not require podman/pkg/rootless

@kannon92
Copy link
Copy Markdown
Contributor Author

I see. I did use that in cri-o/cri-o#7990.

We can drop this PR if you think the above one is the right way to go.

@giuseppe
Copy link
Copy Markdown
Member

I see. I did use that in cri-o/cri-o#7990.

We can drop this PR if you think the above one is the right way to go.

yes let's just revert this change. I've opened a PR: #1884

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants