Add pod-level checkpoint/restore support to crictl (KEP-5823)#1997
Draft
adrianreber wants to merge 3 commits intokubernetes-sigs:masterfrom
Draft
Add pod-level checkpoint/restore support to crictl (KEP-5823)#1997adrianreber wants to merge 3 commits intokubernetes-sigs:masterfrom
adrianreber wants to merge 3 commits intokubernetes-sigs:masterfrom
Conversation
Import github.com/checkpoint-restore/checkpointctl at commit 06e23e6d1f24 to provide pod checkpoint metadata types needed for pod-level checkpoint/restore (KEP-5823). Generated with Claude Code (https://claude.ai/code) Signed-off-by: Adrian Reber <areber@redhat.com>
This is part of KEP-5823: Pod-Level Checkpoint/Restore. Add two new crictl commands for pod-level checkpoint/restore: - checkpointp: Checkpoint one or more running pods to an archive file specified via --export. Sends CheckpointPodRequest to the CRI runtime. - restorep: Restore a pod from a checkpoint image or archive. Supports optional --config for providing a PodSandboxConfig JSON file, and --label/--annotation flags for setting labels and annotations on the restored pod sandbox. Update the vendored CRI API to include the new CheckpointPod and RestorePod RPCs: - CheckpointPodRequest with PodSandboxId and Path fields - CheckpointPodResponse (empty) - RestorePodRequest with Path, Config (PodSandboxConfig), and RuntimeHandler fields - RestorePodResponse with PodSandboxId Generated with Claude Code (https://claude.ai/code) Signed-off-by: Adrian Reber <areber@redhat.com>
Build checkpointp CLI flags dynamically from metadata.SupportedCheckpointOptions instead of hardcoding them. This passes options via the CheckpointPodRequest.Options map so that new checkpoint options added in checkpointctl automatically appear as crictl flags. Generated with Claude Code (https://claude.ai/code) Signed-off-by: Adrian Reber <areber@redhat.com>
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: adrianreber The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This was referenced Feb 23, 2026
Contributor
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds two new crictl commands:
added upstream automatically appear as crictl flags.
sandbox.
The CRI API changes (CheckpointPodRequest/CheckpointPodResponse, RestorePodRequest/RestorePodResponse) are manually vendored from the Kubernetes repository until the upstream changes are released.
Also see:
Changes