containerd/oci
Sebastiaan van Stijn 9bc8d63c9f
cri/server: use containerd/oci instead of libcontainer/devices
Looks like we had our own copy of the "getDevices" code already, so use
that code (which also matches the code that's used to _generate_ the spec,
so a better match).

Moving the code to a separate file, I also noticed that the _unix and _linux
code was _exactly_ the same (baring some `//nolint:` comments), so also
removing the duplicated code.

With this patch applied, we removed the dependency on the libcontainer/devices
package (leaving only libcontainer/user).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-04-08 23:25:21 +02:00
..
client.go Licence header added 2018-02-19 10:32:26 +09:00
spec_opts_linux_test.go Support adding devices by dir 2021-03-15 16:42:23 +00:00
spec_opts_linux.go cri/server: use containerd/oci instead of libcontainer/devices 2021-04-08 23:25:21 +02:00
spec_opts_nonlinux.go oci.WithPrivileged: set the current caps, not the known caps 2021-02-10 17:14:17 +09:00
spec_opts_test.go pkg/cri/opts.WithoutRunMount -> oci.WithoutRunMount 2021-04-07 21:25:36 +09:00
spec_opts_unix_test.go Add Opt for modifying shm size 2019-09-18 10:20:36 -04:00
spec_opts_unix.go cri/server: use containerd/oci instead of libcontainer/devices 2021-04-08 23:25:21 +02:00
spec_opts_windows_test.go OCI Modifiers for Windows 2019-02-06 10:44:36 -08:00
spec_opts_windows.go Support adding devices by dir 2021-03-15 16:42:23 +00:00
spec_opts.go pkg/cri/opts.WithoutRunMount -> oci.WithoutRunMount 2021-04-07 21:25:36 +09:00
spec_test.go oci.WithPrivileged: set the current caps, not the known caps 2021-02-10 17:14:17 +09:00
spec.go Word spelling correction 2019-09-25 16:49:54 +08:00
utils_unix.go cri/server: use containerd/oci instead of libcontainer/devices 2021-04-08 23:25:21 +02:00