Merge pull request #10320 from containerd/dependabot/go_modules/github.com/checkpoint-restore/checkpointctl-1.2.0

build(deps): bump github.com/checkpoint-restore/checkpointctl from 1.1.0 to 1.2.0
This commit is contained in:
Maksym Pavlenko 2024-06-11 17:10:49 +00:00 committed by GitHub
commit 9c4ca8676b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 74 additions and 5 deletions

2
go.mod
View File

@ -8,7 +8,7 @@ require (
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20230306123547-8075edf89bb0 github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20230306123547-8075edf89bb0
github.com/Microsoft/go-winio v0.6.2 github.com/Microsoft/go-winio v0.6.2
github.com/Microsoft/hcsshim v0.12.4 github.com/Microsoft/hcsshim v0.12.4
github.com/checkpoint-restore/checkpointctl v1.1.0 github.com/checkpoint-restore/checkpointctl v1.2.0
github.com/checkpoint-restore/go-criu/v7 v7.1.0 github.com/checkpoint-restore/go-criu/v7 v7.1.0
github.com/containerd/btrfs/v2 v2.0.0 github.com/containerd/btrfs/v2 v2.0.0
github.com/containerd/cgroups/v3 v3.0.3 github.com/containerd/cgroups/v3 v3.0.3

4
go.sum
View File

@ -27,8 +27,8 @@ github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyY
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/checkpoint-restore/checkpointctl v1.1.0 h1:plS/2zBzbAXO6DH/H+TqD7ZGhz8iQVb+NLgsOJSTWaw= github.com/checkpoint-restore/checkpointctl v1.2.0 h1:c8lpj2zRuArZ8FC/Xjo/a2UpwjKJCpFZX3s5M0IHZVo=
github.com/checkpoint-restore/checkpointctl v1.1.0/go.mod h1:DtPd9M4bt/jdt+7DodFxm0lrzdevabk3cbni/FL4BY0= github.com/checkpoint-restore/checkpointctl v1.2.0/go.mod h1:8oF+AtNUFJAI13ETcbB3clnjiwvviX0QzVBhYzQ8yBA=
github.com/checkpoint-restore/go-criu/v7 v7.1.0 h1:JbQyO4o+P8ycNTMLPiiDqXg49bAcy4WljWCzYQho35A= github.com/checkpoint-restore/go-criu/v7 v7.1.0 h1:JbQyO4o+P8ycNTMLPiiDqXg49bAcy4WljWCzYQho35A=
github.com/checkpoint-restore/go-criu/v7 v7.1.0/go.mod h1:1svAtmbtvX4BKI45OFzgoTTLG7oYFKdColv/Vcsb2A8= github.com/checkpoint-restore/go-criu/v7 v7.1.0/go.mod h1:1svAtmbtvX4BKI45OFzgoTTLG7oYFKdColv/Vcsb2A8=
github.com/cilium/ebpf v0.11.0 h1:V8gS/bTCCjX9uUnkUFUpPsksM8n1lXBAvHcpiFk1X2Y= github.com/cilium/ebpf v0.11.0 h1:V8gS/bTCCjX9uUnkUFUpPsksM8n1lXBAvHcpiFk1X2Y=

View File

@ -0,0 +1,65 @@
package metadata
const (
// CheckpointAnnotationEngine specifies the name of the container engine (e.g., podman, cri-o).
CheckpointAnnotationEngine = "org.criu.checkpoint.engine.name"
// CheckpointAnnotationEngineVersion specifies the version of the container engine.
CheckpointAnnotationEngineVersion = "org.criu.checkpoint.engine.version"
// CheckpointAnnotationName specifies the name of the container associated with the checkpoint.
CheckpointAnnotationName = "org.criu.checkpoint.container.name"
// CheckpointAnnotationPod specifies the name of the pod associated with the checkpoint.
CheckpointAnnotationPod = "org.criu.checkpoint.pod.name"
// CheckpointAnnotationPodID specifies the ID of the pod associated with the checkpoint.
CheckpointAnnotationPodID = "org.criu.checkpoint.pod.id"
// CheckpointAnnotationNamespace specifies the namespace of the pod associated with the checkpoint.
CheckpointAnnotationNamespace = "org.criu.checkpoint.pod.namespace"
// CheckpointAnnotationRootfsImageName specifies the name of the root filesystem image associated with the checkpoint.
CheckpointAnnotationRootfsImageName = "org.criu.checkpoint.rootfsImageName"
// CheckpointAnnotationRootfsImageUserRequested specifies the name of the root filesystem image requested by the user.
CheckpointAnnotationRootfsImageUserRequested = "org.criu.checkpoint.rootfsImageUserRequested"
// CheckpointAnnotationRootfsImageSha specifies the SHA hash of the root filesystem image associated with the checkpoint.
CheckpointAnnotationRootfsImageSha = "org.criu.checkpoint.rootfsImageSha"
// CheckpointAnnotationRootfsImageID specifies the ID of the root filesystem image associated with the checkpoint.
CheckpointAnnotationRootfsImageID = "org.criu.checkpoint.rootfsImageID"
// CheckpointAnnotationRawImageName specifies the original unprocessed name of the image used to create the container.
CheckpointAnnotationRawImageName = "org.criu.checkpoint.rawImageName"
// CheckpointAnnotationRuntimeName specifies the runtime used on the host where the checkpoint was created.
CheckpointAnnotationRuntimeName = "org.criu.checkpoint.runtime.name"
// CheckpointAnnotationRuntimeVersion specifies the version of the runtime used on the host where the checkpoint was created.
CheckpointAnnotationRuntimeVersion = "org.criu.checkpoint.runtime.version"
// CheckpointAnnotationCriuVersion specifies the version of CRIU used on the host where the checkpoint was created.
CheckpointAnnotationCriuVersion = "org.criu.checkpoint.criu.version"
// CheckpointAnnotationConmonVersion specifies the version of conmon used on the host where the checkpoint was created.
CheckpointAnnotationConmonVersion = "org.criu.checkpoint.conmon.version"
// CheckpointAnnotationHostArch specifies the CPU architecture of the host where the checkpoint was created.
CheckpointAnnotationHostArch = "org.criu.checkpoint.host.arch"
// CheckpointAnnotationHostKernel specifies the kernel version used by the host where the checkpoint was created.
CheckpointAnnotationHostKernel = "org.criu.checkpoint.host.kernel"
// CheckpointAnnotationCgroupVersion specifies the cgroup version used by the host where the checkpoint was created.
CheckpointAnnotationCgroupVersion = "org.criu.checkpoint.cgroup.version"
// CheckpointAnnotationDistributionVersion specifies the name of the host distribution on which the checkpoint was created.
// This annotation is particularly useful because some distributions may include non-upstream patches
// that can cause CRIU (Checkpoint/Restore in Userspace) to fail.
CheckpointAnnotationDistributionName = "org.criu.checkpoint.distribution.name"
// CheckpointAnnotationDistributionVersion specifies the version of the host distribution on which the checkpoint was created.
CheckpointAnnotationDistributionVersion = "org.criu.checkpoint.distribution.version"
)

View File

@ -48,6 +48,10 @@ type ContainerConfig struct {
Restored bool `json:"restored"` Restored bool `json:"restored"`
} }
type Spec struct {
Annotations map[string]string `json:"annotations,omitempty"`
}
type ContainerdStatus struct { type ContainerdStatus struct {
CreatedAt int64 CreatedAt int64
StartedAt int64 StartedAt int64

4
vendor/modules.txt vendored
View File

@ -77,8 +77,8 @@ github.com/cenkalti/backoff/v4
# github.com/cespare/xxhash/v2 v2.2.0 # github.com/cespare/xxhash/v2 v2.2.0
## explicit; go 1.11 ## explicit; go 1.11
github.com/cespare/xxhash/v2 github.com/cespare/xxhash/v2
# github.com/checkpoint-restore/checkpointctl v1.1.0 # github.com/checkpoint-restore/checkpointctl v1.2.0
## explicit; go 1.18 ## explicit; go 1.21
github.com/checkpoint-restore/checkpointctl/lib github.com/checkpoint-restore/checkpointctl/lib
# github.com/checkpoint-restore/go-criu/v7 v7.1.0 # github.com/checkpoint-restore/go-criu/v7 v7.1.0
## explicit; go 1.18 ## explicit; go 1.18