Skip to content
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

UIDMapping/GIDMapping Suuport #122

Open
qsfang opened this issue Nov 19, 2024 · 1 comment
Open

UIDMapping/GIDMapping Suuport #122

qsfang opened this issue Nov 19, 2024 · 1 comment

Comments

@qsfang
Copy link

qsfang commented Nov 19, 2024

Is there a way to support UIDMapping/GIDMapping using nri?

// PodSandbox linux-specific metadata
type LinuxPodSandbox struct {
        // UIDMapping specifies user mappings for supporting user namespaces.
	UIDMappings []LinuxIDMapping `json:"uidMappings,omitempty"`
	// GIDMapping specifies group mappings for supporting user namespaces.
	GIDMappings []LinuxIDMapping `json:"gidMappings,omitempty"`

	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	....
	Namespaces   []*LinuxNamespace `protobuf:"bytes,5,rep,name=namespaces,proto3" json:"namespaces,omitempty"`                      // for NRI v1 emulation
	Resources    *LinuxResources   `protobuf:"bytes,6,opt,name=resources,proto3" json:"resources,omitempty"`                        // for NRI v1 emulation
       

}

@lengrongfu
Copy link

This is more difficult, as nri can only obtain the ID of the container before it is started, but not the ID after it is started. This feature has already been implemented in runc.

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

No branches or pull requests

2 participants