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

Change registry query from GET to HEAD to avoid Dockerhub API rate li… #457

Merged
merged 11 commits into from
Feb 21, 2024

Conversation

antwacky
Copy link
Contributor

…mits

@antwacky antwacky mentioned this pull request Feb 15, 2024
@antwacky antwacky force-pushed the use-head-to-query-registry branch from cb2baa3 to 6447c1e Compare February 15, 2024 23:04
Copy link
Member

@joaopapereira joaopapereira left a comment

Choose a reason for hiding this comment

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

Unfortunately, it needs to be a little bit more complicated than that. Some registries do not like when you send Head requests in some situations, so in order to ensure that these still work we need to adopt the same logic we currently have in imgpkg

@antwacky antwacky force-pushed the use-head-to-query-registry branch 4 times, most recently from 67d5105 to 1464396 Compare February 21, 2024 10:10
sethiyash and others added 9 commits February 21, 2024 10:11
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.14.0 to 0.17.0.
- [Commits](golang/net@v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Yash Sethiya <[email protected]>
@antwacky antwacky force-pushed the use-head-to-query-registry branch from f600b72 to d031e56 Compare February 21, 2024 10:12
@antwacky antwacky force-pushed the use-head-to-query-registry branch from d031e56 to 2607529 Compare February 21, 2024 10:16
@antwacky
Copy link
Contributor Author

Ah thanks for the pointer, I've updated to use HEAD in the first instance and fall back to GET in case of error as pointed out in the imgpkg library.

Copy link
Member

@joaopapereira joaopapereira left a comment

Choose a reason for hiding this comment

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

LGTM

@joaopapereira joaopapereira merged commit e9d42c9 into carvel-dev:develop Feb 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants