Skip to content

[release/2.2] fix(cri): introspect OCI runtime features for non-runc runtimes - #13779

Merged
AkihiroSuda merged 1 commit into
containerd:release/2.2from
k8s-infra-cherrypick-robot:cherry-pick-13504-to-release/2.2
Jul 18, 2026
Merged

AkihiroSuda merged 1 commit into
containerd:release/2.2from
k8s-infra-cherrypick-robot:cherry-pick-13504-to-release/2.2

Conversation

@k8s-infra-cherrypick-robot

@k8s-infra-cherrypick-robot k8s-infra-cherrypick-robot commented Jul 12, 2026 •

Copy link
Copy Markdown

This is an automated cherry-pick of #13504

/assign AkihiroSuda

Enable OCI runtime feature introspection for non-runc runtimes in CRI

introspectRuntimeFeatures returned an error for any runtime type other
than io.containerd.runc.v2, so non-runc shims such as
containerd-shim-runsc-v1 never had their OCI features surfaced to the
CRI RuntimeHandlerFeatures, even though they implement the shim "-info"
command.

The runc-only guard worked around a nil-pointer panic when marshalling
nil runtime options. That case is already covered by the "if options !=
nil" check, making the guard redundant. Dropping it lets all runtimes be
introspected; shims that do not implement "-info" still fail gracefully
and are logged at debug level, so behavior for those is unchanged.

Guard against nil plugin info Extra, nil runtime Features, and nil
features.Linux before unmarshalling or evaluating CRI user namespace
support.

Signed-off-by: Amir Alavi <[email protected]>
Co-authored-by: Cursor <[email protected]>
@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jul 18, 2026
@AkihiroSuda
AkihiroSuda merged commit bff63f3 into containerd:release/2.2 Jul 18, 2026
51 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jul 18, 2026
@samuelkarp samuelkarp added impact/changelog area/cri Container Runtime Interface (CRI) labels Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) impact/changelog size/L

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants