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

support overriding upstream #28

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

BenTheElder
Copy link
Member

fixes #26

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 21, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 21, 2022
Comment on lines +88 to +89
case strings.HasPrefix(path, "/v1/"):
doV1(w, r, upstreamRegistry)
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need this ? GCR stopped to serve v1 API.

HTTP/2 404
date: Mon, 21 Mar 2022 21:46:57 GMT
content-type: text/html; charset=UTF-8
server: Docker Registry
content-length: 1579
x-xss-protection: 0
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"

Copy link
Member Author

@BenTheElder BenTheElder Mar 21, 2022

Choose a reason for hiding this comment

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

let's do that cleanup in a different PR, v1 support here is purely a minor refactor

@ameukam
Copy link
Member

ameukam commented Mar 21, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 21, 2022
@k8s-ci-robot k8s-ci-robot merged commit 19bcd2d into kubernetes:main Mar 21, 2022
@BenTheElder BenTheElder deleted the override-registry branch March 21, 2022 22:00
@BenTheElder BenTheElder mentioned this pull request Mar 24, 2022
ameukam added a commit to ameukam/k8s.io that referenced this pull request Mar 24, 2022
Followup of:
  - kubernetes/registry.k8s.io#28

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
This was referenced Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

primary upstream backend should be overridable with runtime config
3 participants