allow semver prerelease in Kubernetes version
This MR improves our k8s-version-match
to compensate the fact that Helm semverCompare
does not support comparing releases with the prerelease
portion of semver (e.g. the -rc3
in 1.28.11-rc3+rle21
).
This is a know limitation (feature ?) (see for instance https://github.com/helm/helm/issues/12053), but it prevents us from easily testing rc releases of RKE2 (and presumably of vanilla kubernetes possibly as well).
Edited by Thomas Morin