Description
pack manifest annotate currently only applies annotations to individual manifests within an index. There is no way to annotate the index (manifest list) itself.
Expected Behavior
Allow adding annotations to the top-level index manifest.
Example:
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"manifests": [
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:...",
"annotations": {
"test": "passed"
},
"platform": {
"architecture": "amd64",
"os": "linux"
}
}
],
+ "annotations": {
+ "test": "passed"
+ }
}
Proposed solution
Extend pack manifest annotate to support index-level annotations. Possible approaches:
- Add a flag (e.g.
--index or --root) to target the index manifest
Additional context
Description
pack manifest annotatecurrently only applies annotations to individual manifests within an index. There is no way to annotate the index (manifest list) itself.Expected Behavior
Allow adding annotations to the top-level index manifest.
Example:
{ "schemaVersion": 2, "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "manifests": [ { "mediaType": "application/vnd.oci.image.manifest.v1+json", "digest": "sha256:...", "annotations": { "test": "passed" }, "platform": { "architecture": "amd64", "os": "linux" } } ], + "annotations": { + "test": "passed" + } }Proposed solution
Extend
pack manifest annotateto support index-level annotations. Possible approaches:--indexor--root) to target the index manifestAdditional context