check for err
parent
fb9cd3cbf5
commit
94dfb49ae9
|
@ -42,8 +42,12 @@ func beginCacheKubernetesImages(g *errgroup.Group, imageRepository string, k8sVe
|
||||||
glog.Info("Caching tarball of preloaded images")
|
glog.Info("Caching tarball of preloaded images")
|
||||||
return download.Preload(k8sVersion, cRuntime)
|
return download.Preload(k8sVersion, cRuntime)
|
||||||
})
|
})
|
||||||
g.Wait()
|
err := g.Wait()
|
||||||
return
|
if err == nil {
|
||||||
|
glog.Infof("Finished downloading the preloaded tar for %s on %s", k8sVersion, cRuntime)
|
||||||
|
return // don't cache individual images if preload is successful.
|
||||||
|
}
|
||||||
|
glog.Errorf("Error downloading preloaded artifacts will continue without preload: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !viper.GetBool("cache-images") {
|
if !viper.GetBool("cache-images") {
|
||||||
|
|
Loading…
Reference in New Issue