Merge pull request #1688 from r2d4/local-localkube
Don't fetch localkube when version specified is defaultpull/1700/head
commit
e550e3d0ea
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue