Merge pull request #24520 from aaronlehmann/no-retry-on-unknown-repository
Don't retry push on an unknown repository Upstream-commit: 10d5d08c48d6de61213d7ac5167e4d3589d44df8 Component: engine
This commit is contained in:
@ -89,7 +89,7 @@ func retryOnError(err error) error {
|
||||
}
|
||||
case errcode.Error:
|
||||
switch v.Code {
|
||||
case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests:
|
||||
case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests, v2.ErrorCodeNameUnknown:
|
||||
return xfer.DoNotRetry{Err: err}
|
||||
}
|
||||
case *url.Error:
|
||||
|
||||
Reference in New Issue
Block a user