Repository navigation
Bump cri-api and rename signal enum keys - #13603
sreeram-venkitesh wants to merge 2 commits into
Conversation
Signed-off-by: sreeram-venkitesh <[email protected]>
There was a problem hiding this comment.
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
stringin 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.
| signalValue, ok := runtime.Signal_value[stopsignal] | ||
| if !ok { | ||
| return runtime.Signal_RUNTIME_DEFAULT | ||
| return runtime.Signal_SIGNAL_RUNTIME_DEFAULT | ||
| } | ||
| return runtime.Signal(signalValue) |
| 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]>
|
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? |
|
PR needs rebase. DetailsInstructions 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. |
|
@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 |
This PR bumps cri-api to
v0.37.0-alpha.1to 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
stringto[]bytein kubernetes/kubernetes#139168. CC: @liggittEdit: I missed fixing the []byte conversion in another file, I'm fixing this.