Skip to content

Commit

Permalink
Don't fetch localkube when version specified is default
Browse files Browse the repository at this point in the history
Instead, use the binary that is already bundled with go-bindata.
  • Loading branch information
r2d4 committed Jul 12, 2017
1 parent 6f5972f commit 5271dd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/minikube/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 5271dd1

Please sign in to comment.