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

fix: Do not retrieve metadata for all tags with digest strategy #337

Merged
merged 3 commits into from
Jan 9, 2022

Conversation

jannfis
Copy link
Contributor

@jannfis jannfis commented Jan 9, 2022

When using digest update strategy, the Image Updater would have fetched metadata for all tags returned by the registry. For digest strategy, caching is also disabled and this leads to too many requests to the registry.

Now, only metadata for the tag specified in the version constraint is fetched. All other tags are skipped.

Fixes #313

Signed-off-by: jannfis <jann@mistrust.net>
Signed-off-by: jannfis <jann@mistrust.net>
Signed-off-by: jannfis <jann@mistrust.net>
@jannfis jannfis merged commit 73aae94 into argoproj-labs:master Jan 9, 2022
jannfis added a commit that referenced this pull request Jan 10, 2022
* fix: Only fetch metadata for constraint tag in digest strategx

Signed-off-by: jannfis <jann@mistrust.net>

* fix: Only fetch metadata for constraint tag in digest strategx

Signed-off-by: jannfis <jann@mistrust.net>

* fix: Only fetch metadata for constraint tag in digest strategx

Signed-off-by: jannfis <jann@mistrust.net>
@diranged
Copy link

@jannfis Thank you for fixing this - it decreased our API calls by many of orders of magnitude, and dramatically increases the responsiveness of the image updater for our developers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hitting api requests limit in gcr
2 participants