-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
content-negotiation: bring over the table from Sebastiaan #226
Conversation
and
|
From #212 Signed-off-by: Vincent Batts <[email protected]>
1b53d7a
to
b6c971b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
k. Updated a little. And with the reference to the docker docs, I wonder if it may be good to also copy-paste the paragraph here for posterity sake? @thaJeztah |
I think we need something like this, but I also think this is something incomplete. At one point I put something together to decide what kind of down-conversion GCR would do, copying over from a spreadsheet, I think this is what we settled on:
Diagonal is reading what you wrote, so it works fine (blank space). An Anything else describes how we down-convert for backward compatibility stuff. We don't consider the ordering of accept headers, just "Do they accept what we have? If not do they accept anything we can convert to?" There were other variants of what is possible, but we decided to be conservative, because mutating content-addressable stuff is... not a great idea. I think we require you to put OCI accept headers, for example, even though most clients would probably do just fine if we returned an OCI manifest when they accept schema 2 manifests. Alas. I'd like to be explicit about what status codes should be returned by a registry in these situations. ECR has a similar diagram: https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-manifest-formats.html Note that ECR will freely translate between OCI and Docker media types, which is different from what GCR does, mostly because this isn't in the spec 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I think there are some other comments to address but this documents an interesting history of datatypes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sorry, not sure why I didn't see this one.
Would be good if someone could re-run the curl command for these combinations that I mentioned in #212
(to be sure I didn't mess up any of the combinations .. it's been a while 😂)
(not sure why pullapprove is only seeing 1 of the approvals, but that won't matter as we've moved away from pullapprove) |
From #212
Tagging @jonjohnsonjr and @thaJeztah, to wrap up that thread
I think this is missing expected status codes.