retry up to 5 times

pull/7811/head
Medya Gh 2020-04-20 16:29:07 -07:00
parent f7ff943f78
commit b774db38f3
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ func generateTarball(kubernetesVersion, containerRuntime, tarballFilename string
}
return nil
}
// retry up 5 times if network is bad
if err = retry.Expo(pull, time.Microsecond, time.Minute, 10); err != nil {
// retry up to 5 times if network is bad
if err = retry.Expo(pull, time.Microsecond, time.Minute, 5); err != nil {
return errors.Wrapf(err, "pull image %s", img)
}