Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

fix(repocachemanager): adding rate limit condition message #3543

Merged
merged 1 commit into from
Aug 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/registry/cache/repocachemanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ updates:
return
}
switch {
case strings.Contains(err.Error(), "429"):
case strings.Contains(err.Error(), "429"), strings.Contains(err.Error(), "toomanyrequests"):
// abort the image tags fetching if we've been rate limited
warnAboutRateLimit.Do(func() {
c.logger.Log("warn", "aborting image tag fetching due to rate limiting, will try again later")
Expand Down