Skip to content

Commit

Permalink
Add annotations for creating OCI images from checkpoint archives
Browse files Browse the repository at this point in the history
- These annotations provide metadata including the container
  manager, container-name, pod, namespace for creating OCI
  images from checkpoint archives.

Signed-off-by: Parthiba-Hazra <[email protected]>
  • Loading branch information
Parthiba-Hazra committed Apr 15, 2024
1 parent 6c3a263 commit 2a29fa0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions lib/annotations.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package metadata

const (
// CheckpointAnnotationContainerManager is used when creating an OCI image
// from a checkpoint archive to specify the name of container manager.
CheckpointAnnotationContainerManager = "org.criu.checkpointctl.checkpoint.container.manager"

// CheckpointAnnotationName is used when creating an OCI image
// from a checkpoint archive to specify the name of the checkpoint.
CheckpointAnnotationName = "org.criu.checkpointctl.checkpoint.container"

// CheckpointAnnotationPod is used when creating an OCI image
// from a checkpoint archive to specify the name of the pod associated with the checkpoint.
CheckpointAnnotationPod = "org.criu.checkpointctl.checkpoint.pod"

// CheckpointAnnotationNamespace is used when creating an OCI image
// from a checkpoint archive to specify the namespace of the pod associated with the checkpoint.
CheckpointAnnotationNamespace = "org.criu.checkpointctl.checkpoint.namespace"

// CheckpointAnnotationRootfsImage is used when creating an OCI image
// from a checkpoint archive to specify the root filesystem image associated with the checkpoint.
CheckpointAnnotationRootfsImage = "org.criu.checkpointctl.checkpoint.rootfsImage"

// CheckpointAnnotationRootfsImageID is used when creating an OCI image
// from a checkpoint archive to specify the ID of the root filesystem image associated with the checkpoint.
CheckpointAnnotationRootfsImageID = "org.criu.checkpointctl.checkpoint.rootfsImageID"

// CheckpointAnnotationRootfsImageName is used when creating an OCI image
// from a checkpoint archive to specify the name of the root filesystem image associated with the checkpoint.
CheckpointAnnotationRootfsImageName = "org.criu.checkpointctl.checkpoint.rootfsImageName"

// CheckpointAnnotationRuntimeName is used when creating an OCI image
// from a checkpoint archive to specify the runtime used on the host where the checkpoint was created.
CheckpointAnnotationRuntimeName = "org.criu.checkpointctl.checkpoint.runtime.name"
)

0 comments on commit 2a29fa0

Please sign in to comment.