libcontainer: isolate libcontainer/devices#2679
libcontainer: isolate libcontainer/devices#2679AkihiroSuda merged 2 commits intoopencontainers:masterfrom
Conversation
|
+1, I'm good with the refactoring |
|
oh! forgot to move it out of draft; wanted to be sure it didn't explode; moving to "ready for review" |
|
@kolyshkin LGTY? |
kolyshkin
left a comment
There was a problem hiding this comment.
LGTM overall. I think we may drop "Deivce" prefix from a few IDs, e.g.
configs.DeviceType -> devices.Type
config.DevicePermissions -> devices.Perms
configs.DeviceRule -> devices.Rule
and so on (not all of them though)
c7f8749 to
68c24c8
Compare
|
@kolyshkin @AkihiroSuda @crosbymichael updated; PTAL Changed:
|
|
Hm.. some issue with the SUSE repositories? |
|
let me try if close/open kicks CI here |
|
Failing again 😞 @cyphar any ideas? is this an issue with the opensuse package repos? |
68c24c8 to
ef3d4aa
Compare
|
Rebased, as CI should now be fixed by #2686 |
Move the Device-related types to libcontainer/devices, so that the package can be used in isolation. Aliases have been created in libcontainer/configs for backward compatibility. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
ef3d4aa to
4fc2de7
Compare
|
Rebased again, as CI seemed to be stuck in "preparing" state |
|
travis timed out:
I have seen this before (in cri-o/cri-o), apparently they gradually tighten the resources and thus we need to increase the timeout :( |
|
For now I've just restarted the job |
|
@AkihiroSuda @mrunalp PTAL |
This PR upgrades - docker dependency to the latest tagged release (v20.10.12) - runc dependency to the latest tagged release (v1.0.3) Docker does not abide by [semver](moby/moby#39302), so it is marked +incompatible, and transitive dependencies are upgrade manually. Runc made two minor breaking changes since v1.0.0-rc93 * cgroup manager .Set changed to accept Resources instead of Cgroup opencontainers/runc@3f65946 * config.Device moved to devices.Device opencontainers/runc#2679
This PR upgrades - docker dependency to the latest tagged release (v20.10.12) - runc dependency to the latest tagged release (v1.0.3) Docker does not abide by [semver](moby/moby#39302), so it is marked +incompatible, and transitive dependencies are upgrade manually. Runc made three relevant breaking changes * cgroup manager .Set changed to accept Resources instead of Cgroup opencontainers/runc@3f65946 * config.Device moved to devices.Device opencontainers/runc#2679 * mountinfo.Mounted now returns an error if the specified path does not exist https://github.com/moby/sys/blob/mountinfo/v0.5.0/mountinfo/mountinfo.go#L16
This PR upgrades - docker dependency to the latest tagged release (v20.10.12) - runc dependency to the latest tagged release (v1.0.3) Docker does not abide by [semver](moby/moby#39302), so it is marked +incompatible, and transitive dependencies are upgrade manually. Runc made three relevant breaking changes * cgroup manager .Set changed to accept Resources instead of Cgroup opencontainers/runc@3f65946 * config.Device moved to devices.Device opencontainers/runc#2679 * mountinfo.Mounted now returns an error if the specified path does not exist https://github.com/moby/sys/blob/mountinfo/v0.5.0/mountinfo/mountinfo.go#L16
Move the Device-related types to libcontainer/devices, so that the package can be used in isolation. Aliases have been created in libcontainer/configs for backward compatibility.