Skip to content

Commit b5b1921

Browse files
committed
image.base.ref.name -> image.base.name based on stevvooe's feedback
1 parent 4feeaac commit b5b1921

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

annotations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ This specification defines the following annotation keys, intended for but not l
4343
* **org.opencontainers.image.base.digest** [Digest](descriptor.md#digests) of the image this image is based on (string)
4444
* This SHOULD be the immediate image sharing zero-indexed layers with the image, such as from a Dockerfile `FROM` statement.
4545
* This SHOULD NOT reference any other images used to generate the contents of the image (e.g., multi-stage Dockerfile builds).
46-
* **org.opencontainers.image.base.ref.name** Image reference of the image this image is based on (string)
46+
* **org.opencontainers.image.base.name** Image reference of the image this image is based on (string)
4747
* This SHOULD be image references in the format defined by [distribution/distribution](https://github.com/distribution/distribution/blob/d0deff9cd6c2b8c82c6f3d1c713af51df099d07b/reference/reference.go).
4848
* This SHOULD be a fully qualified reference name, without any assumed default registry. (e.g., `index.docker.io/my-org/my-image:tag` instead of `my-org/my-image:tag`).
4949
* This SHOULD be the immediate image sharing zero-indexed layers with the image, such as from a Dockerfile `FROM` statement.
5050
* This SHOULD NOT reference any other images used to generate the contents of the image (e.g., multi-stage Dockerfile builds).
51-
* If the `image.base.ref.name` annotation is specified, the `image.base.digest` annotation SHOULD be the digest of the manifest referenced by the `image.base.ref.name` annotation.
51+
* If the `image.base.name` annotation is specified, the `image.base.digest` annotation SHOULD be the digest of the manifest referenced by the `image.ref.name` annotation.
5252
5353
## Back-compatibility with Label Schema
5454

specs-go/v1/annotations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ const (
5757
// AnnotationBaseImageDigest is the annotation key for the digest of the image's base image.
5858
AnnotationBaseImageDigest = "org.opencontainers.image.base.digest"
5959

60-
// AnnotationBaseImageRefName is the annotation key for the image reference of the image's base image.
61-
AnnotationBaseImageRefName = "org.opencontainers.image.base.ref.name"
60+
// AnnotationBaseImageName is the annotation key for the image reference of the image's base image.
61+
AnnotationBaseImage = "org.opencontainers.image.base.name"
6262
)

0 commit comments

Comments
 (0)