cri: deprecate restore in CreateContainer - #13838
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a deprecation warning for the CRI behavior that restores checkpoint data during CreateContainer, and wires the warning service through CRI initialization so the deprecation is surfaced via warning emission and ctr deprecations list.
Changes:
- Add a new deprecation ID/message for “restoring checkpoint data during CRI
CreateContainer” and document it inRELEASES.md. - Wire the warning service into
CRIServiceOptions/criServiceand emit/log the warning when checkpoint restore is detected inCreateContainer. - Add unit and contrib-script coverage to verify the warning appears via introspection.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| RELEASES.md | Documents the new deprecation and target removal release. |
| plugins/cri/cri.go | Fetches WarningPlugin once and passes it into CRI server options. |
| pkg/deprecation/deprecation.go | Adds a new deprecation ID and message string. |
| internal/cri/server/service.go | Extends CRI service options/state to carry a warning service. |
| internal/cri/server/container_create.go | Emits the new deprecation warning on checkpoint-based CreateContainer. |
| internal/cri/server/container_checkpoint_warning_test.go | Unit test verifying warning emission for checkpoint restore. |
| contrib/checkpoint/checkpoint-restore-cri-test.sh | Validates warning presence/update via ctr deprecations list --format=json. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
350038a to
26d0db5
Compare
|
@haircommander @adrianreber Do you have any advice on how to coordinate this with CRI-O? |
Assisted-by: Antigravity Signed-off-by: Samuel Karp <samuelkarp@google.com>
26d0db5 to
a3f99ba
Compare
|
/cherry-pick release/2.3 |
|
@samuelkarp: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
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. |
|
oops don't need 2.1 since that's EOL; I'll close the PR when it gets generated |
|
@samuelkarp: new pull request created: #13868 DetailsIn response to this:
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. |
|
@samuelkarp: #13838 failed to apply on top of branch "release/2.2": DetailsIn response to this:
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. |
|
@samuelkarp: #13838 failed to apply on top of branch "release/2.1": DetailsIn response to this:
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. |
No description provided.