Skip to content

Use vnd.docker.distribution.manifest.list.v2+json format when building manifests - #781

Merged
mbaldessari merged 1 commit into
validatedpatterns:mainfrom
mbaldessari:fix-oci-manifest
Jul 27, 2026
Merged

Use vnd.docker.distribution.manifest.list.v2+json format when building manifests#781
mbaldessari merged 1 commit into
validatedpatterns:mainfrom
mbaldessari:fix-oci-manifest

Conversation

@mbaldessari

Copy link
Copy Markdown
Contributor

Tested on my org as follows:

crane manifest quay.io/rhn_support_mbaldess/patterns-operator@sha256:2eb7d7f7197717e8c04fbe0104e674d98c472777c815404297ada562871ec9c4 | jq .
{
  "schemaVersion": 2,
  "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
  "manifests": [
    {
      "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
      "size": 594,
      "digest": "sha256:9817d0f2aa8eb2707d6de85cdfed06fa7c275b46630b5a5b590064e0a9a66a5a",
      "platform": {
        "architecture": "amd64",
        "os": "linux"
      }
    }
  ]
}

Without this change the output was:

crane manifest quay.io/rhn_support_mbaldess/patterns-operator@sha256:873bf02df22717e4639a9db857b67e5799a021412723269eaa7a68b40cee3534 | jq .
{
  "schemaVersion": 2,
  "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
  "config": {
    "mediaType": "application/vnd.docker.container.image.v1+json",
    "size": 9416,
    "digest": "sha256:4060132abd5525240c8b89f6d1ba1fe1031ebec70f7d7646530067a6717d7513"
  },
  "layers": [
    {
      "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
      "size": 40031119,
      "digest": "sha256:75bed6ef625ff772ca48f63f12693f16f2b44649aa07030a7c4bc6b85225d5dd"
    },
    {
      "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
      "size": 25169664,
      "digest": "sha256:aaece705b986271d700842e9b5218838419346f0a5a5837c14c7f20b2c589cd8"
    }
  ]
}

Fixes: #774

…g manifests

Tested on my org as follows:

    crane manifest quay.io/rhn_support_mbaldess/patterns-operator@sha256:2eb7d7f7197717e8c04fbe0104e674d98c472777c815404297ada562871ec9c4 | jq .
    {
      "schemaVersion": 2,
      "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
      "manifests": [
        {
          "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
          "size": 594,
          "digest": "sha256:9817d0f2aa8eb2707d6de85cdfed06fa7c275b46630b5a5b590064e0a9a66a5a",
          "platform": {
            "architecture": "amd64",
            "os": "linux"
          }
        }
      ]
    }

Without this change the output was:

    crane manifest quay.io/rhn_support_mbaldess/patterns-operator@sha256:873bf02df22717e4639a9db857b67e5799a021412723269eaa7a68b40cee3534 | jq .
    {
      "schemaVersion": 2,
      "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
      "config": {
        "mediaType": "application/vnd.docker.container.image.v1+json",
        "size": 9416,
        "digest": "sha256:4060132abd5525240c8b89f6d1ba1fe1031ebec70f7d7646530067a6717d7513"
      },
      "layers": [
        {
          "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
          "size": 40031119,
          "digest": "sha256:75bed6ef625ff772ca48f63f12693f16f2b44649aa07030a7c4bc6b85225d5dd"
        },
        {
          "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
          "size": 25169664,
          "digest": "sha256:aaece705b986271d700842e9b5218838419346f0a5a5837c14c7f20b2c589cd8"
        }
      ]
    }

Fixes: validatedpatterns#774
@openshift-ci

openshift-ci Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mbaldessari

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mbaldessari
mbaldessari merged commit c178bb4 into validatedpatterns:main Jul 27, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish operator images as Docker manifest lists for disconnected registry compatibility

1 participant