mirror of https://github.com/knative/pkg.git
Remove obsolete verbose log message for pre-release (#2235)
The error was obsoleted by https://github.com/knative/pkg/pull/1944.
As we can see this test case
a70bb26767/version/version_test.go (L68-L71)
pre-release version is __NOT__ smaller than the corresponding release
version anymore.
This commit is contained in:
parent
a7f5b39b89
commit
ddd97e9fb8
|
@ -72,10 +72,6 @@ func CheckMinimumVersion(versioner discovery.ServerVersionInterface) error {
|
|||
|
||||
// Return error if the current version is less than the minimum version required.
|
||||
if currentVersion.LT(minimumVersion) {
|
||||
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",
|
||||
currentVersion, minimumVersion, KubernetesMinVersionKey)
|
||||
}
|
||||
return fmt.Errorf("kubernetes version %q is not compatible, need at least %q (this can be overridden with the env var %q)",
|
||||
currentVersion, minimumVersion, KubernetesMinVersionKey)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue