Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Conversation

@jaredledvina
Copy link
Member

Replaces #51 - Not sure why the cherry-picks exploded exactly. This version I've manually done the bump and patches instead.

This PR cherry-picks the upstream commits from opencontainers#4785 after fixing up multiple merge-conflicts, back to 1.3.

@jaredledvina jaredledvina requested a review from a team September 23, 2025 16:23
jaredledvina and others added 2 commits September 23, 2025 12:29
Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
Since opencontainers/cgroups v0.0.2 (commit b206a01), all stuct
Resources fields are annotated with "omitempty" attribute.
As a result, the loaded configuration may have Resources == nil.

It is totally OK (rootless containers may have no resources configured)
except since commit 6c5441e, cgroup v1 fs manager requires Resources to
be set in the call to NewManager (this is a cgroup v1 deficiency,
or maybe our implementation deficiency, or both).

To work around this, let's add code to ensure Resources is never nil
after loading from state.json.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@jaredledvina jaredledvina force-pushed the jared.ledvina/cgroupv003-backport branch from 20874ee to 493ea3e Compare September 23, 2025 16:29
Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
@jaredledvina jaredledvina force-pushed the jared.ledvina/cgroupv003-backport branch from 493ea3e to 3b107f2 Compare September 23, 2025 16:51
@jaredledvina
Copy link
Member Author

Needed to cherry-pick a bit more, closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants