remove unnecessary check; we check this when cr.Preload is called

pull/7044/head
Priya Wadhwa 2020-03-25 10:09:22 -07:00
parent 9d75c7c35a
commit 8afe879c56
1 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ import (
"k8s.io/minikube/pkg/minikube/config" "k8s.io/minikube/pkg/minikube/config"
"k8s.io/minikube/pkg/minikube/constants" "k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/pkg/minikube/cruntime" "k8s.io/minikube/pkg/minikube/cruntime"
"k8s.io/minikube/pkg/minikube/download"
"k8s.io/minikube/pkg/minikube/driver" "k8s.io/minikube/pkg/minikube/driver"
"k8s.io/minikube/pkg/minikube/exit" "k8s.io/minikube/pkg/minikube/exit"
"k8s.io/minikube/pkg/minikube/kubeconfig" "k8s.io/minikube/pkg/minikube/kubeconfig"
@ -198,7 +197,7 @@ func configureRuntimes(runner cruntime.CommandRunner, drvName string, k8s config
} }
// Preload is overly invasive for bare metal, and caching is not meaningful. KIC handled elsewhere. // Preload is overly invasive for bare metal, and caching is not meaningful. KIC handled elsewhere.
if driver.IsVM(drvName) && download.PreloadExists(k8s.KubernetesVersion, k8s.ContainerRuntime) { if driver.IsVM(drvName) {
if err := cr.Preload(k8s); err != nil { if err := cr.Preload(k8s); err != nil {
switch err.(type) { switch err.(type) {
case *cruntime.ErrISOFeature: case *cruntime.ErrISOFeature: