From 5271dd1f40ba832887dde10f8cc12663bab263a6 Mon Sep 17 00:00:00 2001 From: Matt Rickard Date: Wed, 12 Jul 2017 15:21:20 -0700 Subject: [PATCH] Don't fetch localkube when version specified is default Instead, use the binary that is already bundled with go-bindata. --- pkg/minikube/cluster/cluster.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/minikube/cluster/cluster.go b/pkg/minikube/cluster/cluster.go index 93ef689fe4dc..1bc5dd4efe3f 100644 --- a/pkg/minikube/cluster/cluster.go +++ b/pkg/minikube/cluster/cluster.go @@ -211,13 +211,12 @@ func UpdateCluster(d drivers.Driver, config KubernetesConfig) error { var err error //add url/file/bundled localkube to file list - if localkubeURIWasSpecified(config) { + if localkubeURIWasSpecified(config) && config.KubernetesVersion != constants.DefaultKubernetesVersion { lCacher := localkubeCacher{config} localkubeFile, err = lCacher.fetchLocalkubeFromURI() if err != nil { return errors.Wrap(err, "Error updating localkube from uri") } - } else { localkubeFile = assets.NewMemoryAsset("out/localkube", "/usr/local/bin", "localkube", "0777") }