-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add annotations for creating OCI images from checkpoint archives
- 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
1 parent
6c3a263
commit 2a29fa0
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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" | ||
) |