Skip to content

Bump cri-api and rename signal enum keys - #13603

Draft
sreeram-venkitesh wants to merge 2 commits into
containerd:mainfrom
sreeram-venkitesh:svenkitesh/bump-cri-api-for-stopsignal
Draft

sreeram-venkitesh wants to merge 2 commits into
containerd:mainfrom
sreeram-venkitesh:svenkitesh/bump-cri-api-for-stopsignal

Conversation

@sreeram-venkitesh

@sreeram-venkitesh sreeram-venkitesh commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

This PR bumps cri-api to v0.37.0-alpha.1 to pull the changes from kubernetes/kubernetes#139251 for http://kep.k8s.io/4960.

I have made a few changes to container_create.go to handle KeyValue's value being changed from string to []byte in kubernetes/kubernetes#139168. CC: @liggitt

Edit: I missed fixing the []byte conversion in another file, I'm fixing this.

Copilot AI review requested due to automatic review settings June 16, 2026 02:07
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates CRI-related signal handling and refreshes vendored dependencies to align with newer k8s.io/cri-api and golang.org/x/* versions.

Changes:

  • Bump dependencies: k8s.io/cri-api, golang.org/x/crypto, and golang.org/x/net (plus vendor/go.sum updates).
  • Update CRI stop-signal enum constants to match the newer generated proto names.
  • Adjust environment variable construction to cast env values to string in Linux/Windows/Darwin spec builders.

Reviewed changes

Copilot reviewed 5 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
vendor/modules.txt Updates vendored module versions for x/crypto, x/net, and cri-api.
internal/cri/server/container_stop_signal.go Switches to the new CRI enum constant names for runtime default signal handling.
internal/cri/server/container_stop.go Updates stop-signal default comparison for container stop logic.
internal/cri/server/container_status.go Updates default stop-signal handling and SIGTERM enum constant name.
internal/cri/server/container_create.go Updates stop-signal default comparison; casts env values when building specs.
go.sum Updates checksums for bumped dependencies.
go.mod Bumps module requirements for cri-api, x/crypto, and x/net.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 49 to 53
signalValue, ok := runtime.Signal_value[stopsignal]
if !ok {
return runtime.Signal_RUNTIME_DEFAULT
return runtime.Signal_SIGNAL_RUNTIME_DEFAULT
}
return runtime.Signal(signalValue)
Comment thread go.mod
k8s.io/apimachinery v0.36.1
k8s.io/client-go v0.36.1
k8s.io/cri-api v0.36.1
k8s.io/cri-api v0.37.0-alpha.1
env := append([]string{}, imageConfig.Env...)
for _, e := range config.GetEnvs() {
env = append(env, e.GetKey()+"="+e.GetValue())
env = append(env, e.GetKey()+"="+string(e.GetValue()))
Signed-off-by: sreeram-venkitesh <[email protected]>
@liggitt

liggitt commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

I think we'd prefer #13453 land first. Wouldn't it be better to wait until a non-alpha tag is cut with these changes?

@k8s-ci-robot

Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@sreeram-venkitesh

Copy link
Copy Markdown
Contributor Author

@liggitt I'm okay with waiting for a non-alpha tag before we bump it here. The beta.0 release for 1.37 is a week before the k/k code freeze. Since https://kep.k8s.io/4960 is tracked for beta in v1.37 so I'm assuming we'd have to get the code changes for k/k approved and merge along with the updates here? Since we will be doing the cri-api version bump in containerd in the v1.37 cycle anyway, I hope it is safe to do the KEP graduation in k/k before this make this change. Please let me know what you folks think!

CC: @mikebrow

@samuelkarp

Copy link
Copy Markdown
Member

I think we'd prefer #13453 land first.

Marking as draft to convey that this is not ready yet. Once #13453 lands please rebase and then mark this ready.

@samuelkarp
samuelkarp marked this pull request as draft June 23, 2026 19:05
@samuelkarp samuelkarp added area/cri Container Runtime Interface (CRI) and removed do-not-merge/work-in-progress labels Jun 23, 2026
@samuelkarp samuelkarp moved this from Needs Triage to Work In Progress in Pull Request Review Jun 23, 2026
@samuelkarp samuelkarp moved this from Work In Progress to Blocked in Pull Request Review Jun 23, 2026
@mikebrow mikebrow added this to the 2.5 milestone Aug 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Blocked

Development

Successfully merging this pull request may close these issues.

7 participants