Skip to content
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

registry: update blob mount behaviour when from parameter is missing (PROJQUAY-2570) #899

Merged
merged 1 commit into from Sep 23, 2021

Conversation

kleesc
Copy link
Member

@kleesc kleesc commented Sep 21, 2021

Update the behaviour when attempting to mount existing blob whenever
the from parameter is missing. Currently, Quay throws an Bad Request
error whenever the `from parameter is missing. However, according to
the specs (Docker Registry and OCI dist-spec), we should be falling
back to the default upload behaviour.

References:

@kleesc kleesc force-pushed the blob-mount-fallback-behaviour branch 2 times, most recently from 27a9c10 to c2e039e Compare September 21, 2021 22:08
…(PROJQUAY-2570)

Update the behaviour when attempting to mount existing blob whenever
the `from` parameter is missing. Currently, Quay throws an Bad Request
error whenever the `from parameter is missing. However, according to
the specs (Docker Registry and OCI dist-spec), we should be falling
back to the default upload behaviour.

References:
  - https://docs.docker.com/registry/spec/api/#pushing-an-image
  -
  https://github.com/opencontainers/distribution-spec/blob/main/spec.md#mounting-a-blob-from-another-repository
  - https://github.com/opencontainers/distribution-spec/pull/275/files
@kleesc kleesc changed the title registry: update blob mount behaviour when from parameter is missing (PROJQUAY-XXXX) registry: update blob mount behaviour when from parameter is missing (PROJQUAY-2570) Sep 21, 2021
@kleesc kleesc force-pushed the blob-mount-fallback-behaviour branch from c2e039e to 7b7c55c Compare September 21, 2021 23:40
Copy link
Member

@hdonnay hdonnay left a comment

Choose a reason for hiding this comment

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

SGTM

Copy link
Contributor

@flavianmissi flavianmissi left a comment

Choose a reason for hiding this comment

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

lgmt with a test suggestion

endpoints/v2/test/test_blob.py Show resolved Hide resolved
@kleesc kleesc merged commit 32322bc into quay:master Sep 23, 2021
@kleesc kleesc deleted the blob-mount-fallback-behaviour branch September 23, 2021 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants