mirror of https://github.com/knative/pkg.git
* Add IsNum to true when set `-0` to minimumVersion.Pre. This patch adds IsNum to true when set `-0` to minimumVersion.Pre. For example, the version (`1.20.0-1095+9689d22dc3121e-dirty`) is not compared correctly: ``` 2021/09/16 01:33:33 Failed to get k8s version kubernetes version "1.20.0-1095+9689d22dc3121e-dirty" is not compatible, need at least "1.20.0-" (this can be overridden with the env var "KUBERNETES_MIN_VERSION") ``` * Add comment |
||
|---|---|---|
| .. | ||
| version.go | ||
| version_test.go | ||