From 84a68d634be53f5b0dcad1300bff04a006b80eae Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Tue, 19 Sep 2023 00:27:57 +0000 Subject: [PATCH] Revert "cri: Throw an error if idmap mounts is requested" This reverts commit 7de8629be0e62c4d8164cd873baf14b64bcbb90b. --- pkg/cri/opts/spec_linux_opts.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/cri/opts/spec_linux_opts.go b/pkg/cri/opts/spec_linux_opts.go index 24cc2cb90daf..f0db45a2f391 100644 --- a/pkg/cri/opts/spec_linux_opts.go +++ b/pkg/cri/opts/spec_linux_opts.go @@ -163,10 +163,6 @@ func WithMounts(osi osinterface.OS, config *runtime.ContainerConfig, extra []*ru return fmt.Errorf("relabel %q with %q failed: %w", src, mountLabel, err) } } - if mount.UidMappings != nil || mount.GidMappings != nil { - return fmt.Errorf("idmap mounts not yet supported, but they were requested for: %q", src) - } - s.Mounts = append(s.Mounts, runtimespec.Mount{ Source: src, Destination: dst,