diff --git a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go index 554efa1606..727c5870c2 100644 --- a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go +++ b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go @@ -630,7 +630,7 @@ func NewKubeletConfig(k8s config.KubernetesConfig, r cruntime.Manager) ([]byte, // UpdateCluster updates the cluster func (k *Bootstrapper) UpdateCluster(cfg config.MachineConfig) error { - images := images.CachedImages(cfg.KubernetesConfig.KubernetesVersion, cfg.KubernetesConfig.KubernetesVersion) + images := images.CachedImages(cfg.KubernetesConfig.ImageRepository, cfg.KubernetesConfig.KubernetesVersion) if cfg.KubernetesConfig.ShouldLoadCachedImages { if err := machine.LoadImages(&cfg, k.c, images, constants.ImageCacheDir); err != nil { out.FailureT("Unable to load cached images: {{.error}}", out.V{"error": err}) diff --git a/pkg/minikube/machine/cache_images.go b/pkg/minikube/machine/cache_images.go index 73c43d9524..126ab12940 100644 --- a/pkg/minikube/machine/cache_images.go +++ b/pkg/minikube/machine/cache_images.go @@ -17,7 +17,6 @@ limitations under the License. package machine import ( - "fmt" "io/ioutil" "os" "os/exec" @@ -141,7 +140,6 @@ func CacheAndLoadImages(images []string) error { continue // try next machine } if status == state.Running.String() { // the not running hosts will load on next start - fmt.Println("got a running", pName) h, err := api.Load(pName) if err != nil { return err @@ -154,7 +152,6 @@ func CacheAndLoadImages(images []string) error { if err != nil { return err } - fmt.Printf("inside CacheAndLoadImages, \n images %+v \n ", images) err = LoadImages(c, cr, images, constants.ImageCacheDir) if err != nil { glog.Warningf("Failed to load cached images for profile %s. make sure the profile is running. %v", pName, err)