Skip to content

Set annotations parameter in CreateSandbox request#12566

Merged
mxpv merged 1 commit intocontainerd:mainfrom
rawahars:main
Jan 5, 2026
Merged

Set annotations parameter in CreateSandbox request#12566
mxpv merged 1 commit intocontainerd:mainfrom
rawahars:main

Conversation

@rawahars
Copy link
Copy Markdown
Contributor

In the CreateSandbox request, which is part of the Sandbox Controller, we ignored the Annotations parameter which could have been set by the caller via WithAnnotations option.

This PR rectifies the same and adds the Annotations parameter to the request.

Issue: #12565

Rootfs: mount.ToProto(coptions.Rootfs),
Options: typeurl.MarshalProto(coptions.Options),
NetnsPath: coptions.NetNSPath,
Annotations: coptions.Annotations,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don´t we have any test covering this? This looks like kind a regression

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@fals Unfortunately, I could not find tests associated with Controller functionality.
This was the PR where this enhancement was added- #8960

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@fals Can you please help me regarding the next steps? Can you please suggest how can i make progress in this PR?

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Dec 28, 2025
In the CreateSandbox request, which is part of the Sandbox Controller, we ignored the `Annotations` parameter which could have been set by the caller via `WithAnnotations` option.

This commit rectifies the same and adds the Annotations parameter to the request.

Signed-off-by: Harsh Rawat <[email protected]>
@rawahars
Copy link
Copy Markdown
Contributor Author

@mxpv @djdongjin Can any of you please merge the PR?

@mxpv mxpv added this pull request to the merge queue Jan 5, 2026
Merged via the queue into containerd:main with commit 2bddff3 Jan 5, 2026
52 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants