Skip to content

Remove Container field from sandbox metadata#12840

Merged
mxpv merged 5 commits intocontainerd:mainfrom
mxpv:sandbox
Feb 18, 2026
Merged

Remove Container field from sandbox metadata#12840
mxpv merged 5 commits intocontainerd:mainfrom
mxpv:sandbox

Conversation

@mxpv
Copy link
Copy Markdown
Member

@mxpv mxpv commented Jan 31, 2026

There are multiple places in CRI which assume the use of pause containers and the podsandbox package. Since the goal of the Sandbox API is to abstract away the use of pause containers, we should not make such assumptions.

This PR removes the Container object for the pause container from Sandbox metadata. This was primarily used in NRI, so this PR refactors the code to fetch the necessary data from the metadata store instead.

@chrishenzie could PTAL? This updates nriPodSandbox to fetch spec from sandbox store instead of task instance (we don't want to access pause container directly), so this, technically, amends lifecycle test, because the spec will remain available after stopping pod sandbox.

Update sandbox API to include spec field

@mxpv mxpv requested a review from chrishenzie January 31, 2026 02:07
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jan 31, 2026
@dosubot dosubot Bot added the area/nri Node Resource Interface (NRI) label Jan 31, 2026
@mxpv mxpv added the area/cri Container Runtime Interface (CRI) label Jan 31, 2026
Copy link
Copy Markdown
Member

@chrishenzie chrishenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, no major comments, thank you for cleaning this up!

@mxpv mxpv moved this from Needs Triage to Needs Reviewers in Pull Request Review Feb 7, 2026
@github-project-automation github-project-automation Bot moved this from Needs Reviewers to Review In Progress in Pull Request Review Feb 13, 2026
@mxpv mxpv added this pull request to the merge queue Feb 13, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 13, 2026
@mxpv mxpv added this pull request to the merge queue Feb 13, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 13, 2026
mxpv added 5 commits February 17, 2026 14:23
Signed-off-by: Maksym Pavlenko <[email protected]>
Signed-off-by: Maksym Pavlenko <[email protected]>
Signed-off-by: Maksym Pavlenko <[email protected]>
@mxpv mxpv added this pull request to the merge queue Feb 18, 2026
Merged via the queue into containerd:main with commit ec5d378 Feb 18, 2026
95 of 97 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Feb 18, 2026
@mxpv mxpv deleted the sandbox branch February 18, 2026 05:34
@dmcgowan dmcgowan removed the area/cri Container Runtime Interface (CRI) label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants