Skip to content

Fix config mediatype in Convert#1539

Merged
Kern-- merged 1 commit into
awslabs:mainfrom
Kern--:convert-config
May 1, 2025
Merged

Fix config mediatype in Convert#1539
Kern-- merged 1 commit into
awslabs:mainfrom
Kern--:convert-config

Conversation

@Kern--
Copy link
Copy Markdown

@Kern-- Kern-- commented May 1, 2025

Issue #, if available:

Description of changes:
Converting an image to a soci-enabled image also converts docker v2 images to oci v1 images. Before this change, we didn't change the image config's mediatype meaning the image would claim it is an OCI v1 image while the config would claim it's a Docker v2 image. This caused some registries to interpret this as a non-image artifact. This change sets the config media type to be a OCI v1 config.

Testing performed:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Kern-- Kern-- requested a review from a team as a code owner May 1, 2025 17:32
@github-actions github-actions Bot added go Pull requests that update Go code testing Unit and/or integration tests labels May 1, 2025
Converting an image to a soci-enabled image also converts docker v2
images to oci v1 images. Before this change, we didn't change the
image config's mediatype meaning the image would claim it is an OCI v1
image while the config would claim it's a Docker v2 image. This caused
some registries to interpret this as a non-image artifact. This change
sets the config media type to be a OCI v1 config.

Signed-off-by: Kern Walster <walster@amazon.com>
@Kern-- Kern-- force-pushed the convert-config branch from 8e056d9 to d3c2cae Compare May 1, 2025 17:36
@Kern-- Kern-- merged commit 528b46a into awslabs:main May 1, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code testing Unit and/or integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants