Skip to content

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

@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 <[email protected]>

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

Signed-off-by: jannfis <[email protected]>

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

Signed-off-by: jannfis <[email protected]>
@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!

sribiere-jellysmack pushed a commit to sribiere-jellysmack/argocd-image-updater that referenced this pull request Aug 13, 2024
…proj-labs#337)

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

Signed-off-by: jannfis <[email protected]>

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

Signed-off-by: jannfis <[email protected]>

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

Signed-off-by: jannfis <[email protected]>
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