review comments

pull/6928/head
Priya Wadhwa 2020-03-06 17:36:58 -08:00
parent 992b51cd4e
commit 095fd2a526
2 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func configureRuntimes(runner cruntime.CommandRunner, drvName string, k8s config
}
if !driver.IsKIC(drvName) {
if err := cr.Preload(k8s.KubernetesVersion); err != nil {
glog.Infof("Failed to preload container runtime %s: %v, falling back to caching images", cr.Name(), err)
glog.Errorf("Failed to preload container runtime %s: %v, falling back to caching images", cr.Name(), err)
if err := machine.CacheImagesForBootstrapper(k8s.ImageRepository, k8s.KubernetesVersion, viper.GetString(cmdcfg.Bootstrapper)); err != nil {
exit.WithError("Failed to cache images", err)
}

View File

@ -59,6 +59,7 @@ func Start(mc config.ClusterConfig, n config.Node, primary bool, existingAddons
mRunner, preExists, machineAPI, host := startMachine(&mc, &n)
defer machineAPI.Close()
// wait for preloaded tarball to finish downloading before configuring runtimes
waitCacheRequiredImages(&cacheGroup)
// configure the runtime (docker, containerd, crio)