Skip to content

Commit

Permalink
Revert "cri: Throw an error if idmap mounts is requested"
Browse files Browse the repository at this point in the history
This reverts commit 7de8629.
  • Loading branch information
brandond committed Dec 10, 2023
1 parent 34589e4 commit 84a68d6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/cri/opts/spec_linux_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 84a68d6

Please sign in to comment.