rename HTTP error

This commit is contained in:
Yann Hamon 2020-11-08 16:21:48 +01:00
parent 230528102e
commit 45040c3fe2
4 changed files with 10 additions and 12 deletions

View file

@ -26,7 +26,7 @@ func downloadSchema(registries []registry.Registry, kind, version, k8sVersion st
}
// If we get a 404, we try the next registry, but we exit if we get a real failure
if er, retryable := err.(registry.Retryable); retryable && !er.IsRetryable() {
if _, notfound := err.(*registry.NotFoundError); notfound {
continue
}