Skip to content

Commit

Permalink
Merge pull request #1688 from r2d4/local-localkube
Browse files Browse the repository at this point in the history
Don't fetch localkube when version specified is default
  • Loading branch information
r2d4 authored Jul 13, 2017
2 parents 2e8c9ed + 5271dd1 commit e550e3d
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 e550e3d

Please sign in to comment.