lint cleanup
parent
832fb6b4ab
commit
9adf54388d
|
@ -45,7 +45,6 @@ func CacheBinariesForBootstrapper(version string, clusterBootstrapper string) er
|
||||||
return g.Wait()
|
return g.Wait()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// CopyBinary copies a locally cached binary to the guest VM
|
// CopyBinary copies a locally cached binary to the guest VM
|
||||||
func CopyBinary(cr command.Runner, src string, dest string) error {
|
func CopyBinary(cr command.Runner, src string, dest string) error {
|
||||||
f, err := assets.NewFileAsset(src, path.Dir(dest), path.Base(dest), "0755")
|
f, err := assets.NewFileAsset(src, path.Dir(dest), path.Base(dest), "0755")
|
||||||
|
|
|
@ -25,8 +25,6 @@ import (
|
||||||
// VersionPrefix is the prefix of the git tag for a version
|
// VersionPrefix is the prefix of the git tag for a version
|
||||||
const VersionPrefix = "v"
|
const VersionPrefix = "v"
|
||||||
|
|
||||||
// The current version of the minikube
|
|
||||||
|
|
||||||
// version is a private field and should be set when compiling with --ldflags="-X k8s.io/minikube/pkg/version.version=vX.Y.Z"
|
// version is a private field and should be set when compiling with --ldflags="-X k8s.io/minikube/pkg/version.version=vX.Y.Z"
|
||||||
var version = "v0.0.0-unset"
|
var version = "v0.0.0-unset"
|
||||||
|
|
||||||
|
@ -36,8 +34,6 @@ var gitCommitID = ""
|
||||||
// isoVersion is a private field and should be set when compiling with --ldflags="-X k8s.io/minikube/pkg/version.isoVersion=vX.Y.Z"
|
// isoVersion is a private field and should be set when compiling with --ldflags="-X k8s.io/minikube/pkg/version.isoVersion=vX.Y.Z"
|
||||||
var isoVersion = "v0.0.0-unset"
|
var isoVersion = "v0.0.0-unset"
|
||||||
|
|
||||||
var isoPath = "minikube/iso"
|
|
||||||
|
|
||||||
// GetVersion returns the current minikube version
|
// GetVersion returns the current minikube version
|
||||||
func GetVersion() string {
|
func GetVersion() string {
|
||||||
return version
|
return version
|
||||||
|
@ -53,7 +49,6 @@ func GetISOVersion() string {
|
||||||
return isoVersion
|
return isoVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// GetSemverVersion returns the current minikube semantic version (semver)
|
// GetSemverVersion returns the current minikube semantic version (semver)
|
||||||
func GetSemverVersion() (semver.Version, error) {
|
func GetSemverVersion() (semver.Version, error) {
|
||||||
return semver.Make(strings.TrimPrefix(GetVersion(), VersionPrefix))
|
return semver.Make(strings.TrimPrefix(GetVersion(), VersionPrefix))
|
||||||
|
|
Loading…
Reference in New Issue