Use a single custom annotation for export
Remove annotation prefix and add multiple index records for manifests with multiple image names. This makes the custom annotation more consistent with the OCI image annotation. Additionally, ensure the OCI image annotation always represents the tag (partial image name) as recommended by the specification. The containerd image name annotation will always contain the full image name. Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
@@ -20,9 +20,4 @@ const (
|
||||
// AnnotationImageName is an annotation on a Descriptor in an index.json
|
||||
// containing the `Name` value as used by an `Image` struct
|
||||
AnnotationImageName = "io.containerd.image.name"
|
||||
|
||||
// AnnotationImageNamePrefix is used the same way as AnnotationImageName
|
||||
// but may be used to refer to additional names in the annotation map
|
||||
// using user-defined suffixes (i.e. "extra.1")
|
||||
AnnotationImageNamePrefix = AnnotationImageName + "."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user