Skip to content

[oci] Support querying registries that Accept application/vnd.oci.image.index.v1+json - #393

Merged
joshspicer merged 2 commits into
mainfrom
joshspicer/docker-image-index
Feb 2, 2023
Merged

joshspicer merged 2 commits into
mainfrom
joshspicer/docker-image-index

Conversation

@joshspicer

@joshspicer joshspicer commented Feb 2, 2023 •

Copy link
Copy Markdown
Contributor

This fixes two failing tests inspect image in docker.io and inspect image in mcr.microsoft.com that began failing on main.

The fix is to implement parsing the image index media type,
https://github.com/opencontainers/image-spec/blob/main/image-index.md. Before this change, something had changed on the dockerhub/mcr side to reject the Accept header we had been sending and expecting as a response:

image

Note that Features/Templates are uneffected since we have our own mediaTypes and expected format.

@joshspicer joshspicer changed the title Support querying registries that Accept `` Feb 2, 2023
@joshspicer joshspicer changed the title Support querying registries that Accept application/vnd.oci.image.index.v1+json Feb 2, 2023
@joshspicer joshspicer changed the title [ociSupport querying registries that Accept application/vnd.oci.image.index.v1+json Feb 2, 2023
@joshspicer
joshspicer marked this pull request as ready for review February 2, 2023 01:24
@joshspicer
joshspicer requested a review from a team as a code owner February 2, 2023 01:24

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

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

Labels

None yet

2 participants