Skip to content

Support index-level annotations in pack manifest annotate #2586

Description

@ddusht

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

  • This feature should be documented somewhere

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/readyIssue ready to be worked on.type/enhancementIssue that requests a new feature or improvement.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions