mirror of https://github.com/knative/pkg.git
Update version check comment (#2234)
This commit is contained in:
parent
a94f5f07b3
commit
a4ed097995
|
|
@ -70,8 +70,7 @@ func CheckMinimumVersion(versioner discovery.ServerVersionInterface) error {
|
||||||
minimumVersion.Pre = []semver.PRVersion{{VersionNum: 0}}
|
minimumVersion.Pre = []semver.PRVersion{{VersionNum: 0}}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compare returns 1 if the first version is greater than the
|
// Return error if the current version is less than the minimum version required.
|
||||||
// second version.
|
|
||||||
if currentVersion.LT(minimumVersion) {
|
if currentVersion.LT(minimumVersion) {
|
||||||
if len(currentVersion.Pre) > 0 {
|
if len(currentVersion.Pre) > 0 {
|
||||||
return fmt.Errorf("pre-release kubernetes version %q is not compatible, need at least %q (this can be overridden with the env var %q); note pre-release version is smaller than the corresponding release version (e.g. 1.x.y-z < 1.x.y), using 1.x.y-0 as the minimum version is likely to help in this case",
|
return fmt.Errorf("pre-release kubernetes version %q is not compatible, need at least %q (this can be overridden with the env var %q); note pre-release version is smaller than the corresponding release version (e.g. 1.x.y-z < 1.x.y), using 1.x.y-0 as the minimum version is likely to help in this case",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue