Skip to content

Commit c00d108

Browse files
committed
Remove artifact manifest
The artifact manifest does not confer any additional benefits beyond the existing image manifest. Drop it for the sake of backward compatibility. Signed-off-by: Jon Johnson <[email protected]>
1 parent 188d3a4 commit c00d108

File tree

9 files changed

+3
-132
lines changed

9 files changed

+3
-132
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ DOC_FILES := \
3030
descriptor.md \
3131
image-layout.md \
3232
manifest.md \
33-
artifact.md \
3433
image-index.md \
3534
layer.md \
3635
config.md \

artifact.md

Lines changed: 0 additions & 74 deletions
This file was deleted.

descriptor.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,10 @@ The following fields contain the primary properties that constitute a Descriptor
5555
- **`artifactType`** *string*
5656

5757
This OPTIONAL property contains the type of an artifact when the descriptor points to an artifact.
58-
This is the value of `artifactType` when the descriptor references an [artifact manifest](artifact.md).
5958
This is the value of the config descriptor `mediaType` when the descriptor references an [image manifest](manifest.md).
6059

6160
Descriptors pointing to [`application/vnd.oci.image.manifest.v1+json`](manifest.md) SHOULD include the extended field `platform`, see [Image Index Property Descriptions](image-index.md#image-index-property-descriptions) for details.
6261

63-
Descriptors pointing to [`application/vnd.oci.artifact.manifest.v1+json`](artifact.md) SHOULD include the extended field `artifactType`.
64-
6562
### Reserved
6663

6764
Extended _Descriptor_ field additions proposed in other OCI specifications SHOULD first be considered for addition into this specification.
@@ -205,7 +202,7 @@ In the following example, the descriptor indicates the type of artifact it is re
205202

206203
```json,title=Content%20Descriptor&mediatype=application/vnd.oci.descriptor.v1%2Bjson
207204
{
208-
"mediaType": "application/vnd.oci.artifact.manifest.v1+json",
205+
"mediaType": "application/vnd.oci.image.manifest.v1+json",
209206
"size": 123,
210207
"digest": "sha256:87923725d74f4bfb94c9e86d64170f7521aad8221a5de834851470ca142da630",
211208
"artifactType": "application/vnd.example.sbom.v1"

image-index.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ For the media type(s) that this document is compatible with, see the [matrix][ma
3535
Implementations MUST support at least the following media types:
3636

3737
- [`application/vnd.oci.image.manifest.v1+json`](manifest.md)
38-
- [`application/vnd.oci.artifact.manifest.v1+json`](artifact.md)
3938

4039
Also, implementations SHOULD support the following media types:
4140

@@ -157,14 +156,9 @@ When the variant of the CPU is not listed in the table, values are implementatio
157156
}
158157
},
159158
{
160-
"mediaType": "application/vnd.oci.artifact.manifest.v1+json",
159+
"mediaType": "application/vnd.oci.image.index.v1+json",
161160
"size": 7682,
162-
"digest": "sha256:601570aaff1b68a61eb9c85b8beca1644e698003e0cdb5bce960f193d265a8b7",
163-
"artifactType": "application/example",
164-
"annotations": {
165-
"com.example.artifactKey1": "value1",
166-
"com.example.artifactKey2": "value2"
167-
}
161+
"digest": "sha256:601570aaff1b68a61eb9c85b8beca1644e698003e0cdb5bce960f193d265a8b7"
168162
}
169163
],
170164
"annotations": {

img/media-types.dot

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ digraph G {
44
{
55
rank=same
66
manifest [shape=note, label="Image manifest\napplication/vnd.oci.image.manifest.v1+json"]
7-
artifact [shape=note, label="Artifact Manifest\napplication/vnd.oci.artifact.manifest.v1+json"]
87
}
98
config [shape=note, label="Image config JSON\napplication/vnd.oci.image.config.v1+json"]
109
layer [shape=note, label="Layer tar archive\napplication/vnd.oci.image.layer.v1.tar\napplication/vnd.oci.image.layer.v1.tar+gzip\napplication/vnd.oci.image.layer.nondistributable.v1.tar\napplication/vnd.oci.image.layer.nondistributable.v1.tar+gzip"]
@@ -14,9 +13,5 @@ digraph G {
1413
imageIndex -> manifest [label="1..*"]
1514
manifest -> config [label="1..1"]
1615
manifest -> layer [label="1..*"]
17-
artifact -> manifest [label="0..1"] [constraint = false];
18-
artifact -> artifact [label="0..1"];
1916
manifest -> manifest [label="0..1"];
20-
artifact -> imageIndex [label="0..1"]
21-
artifact -> layer[label="0..*"]
2217
}

media-types.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ The following media types identify the formats described here and their referenc
1313
- `application/vnd.oci.image.layer.nondistributable.v1.tar`: ["Layer", as a tar archive with distribution restrictions](layer.md#non-distributable-layers)
1414
- `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`: ["Layer", as a tar archive with distribution restrictions](layer.md#gzip-media-types) compressed with [gzip][rfc1952]
1515
- `application/vnd.oci.image.layer.nondistributable.v1.tar+zstd`: ["Layer", as a tar archive with distribution restrictions](layer.md#zstd-media-types) compressed with [zstd][rfc8478]
16-
- `application/vnd.oci.artifact.manifest.v1+json`: [Artifact manifest](artifact.md)
1716

1817
## Media Type Conflicts
1918

spec.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ The goal of this specification is to enable the creation of interoperable tools
1717
- [Image Index](image-index.md)
1818
- [Filesystem Layers](layer.md)
1919
- [Image Configuration](config.md)
20-
- [Artifact Manifest](artifact.md)
2120
- [Annotations](annotations.md)
2221
- [Conversion](conversion.md)
2322
- [Considerations](considerations.md)
@@ -54,7 +53,6 @@ The high-level components of the spec include:
5453

5554
* [Image Manifest](manifest.md) - a document describing the components that make up a container image
5655
* [Image Index](image-index.md) - an annotated list of manifests
57-
* [Artifact Manifest](artifact.md) - a document describing the components that make up an artifact
5856
* [Image Layout](image-layout.md) - a filesystem layout representing the contents of an image
5957
* [Filesystem Layer](layer.md) - a changeset that describes a container's filesystem
6058
* [Image Configuration](config.md) - a document determining layer ordering and configuration of the image suitable for translation into a [runtime bundle][runtime-spec]

specs-go/v1/artifact.go

Lines changed: 0 additions & 34 deletions
This file was deleted.

specs-go/v1/mediatype.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,4 @@ const (
5454

5555
// MediaTypeImageConfig specifies the media type for the image configuration.
5656
MediaTypeImageConfig = "application/vnd.oci.image.config.v1+json"
57-
58-
// MediaTypeArtifactManifest specifies the media type for a content descriptor.
59-
MediaTypeArtifactManifest = "application/vnd.oci.artifact.manifest.v1+json"
6057
)

0 commit comments

Comments
 (0)