)
// by default, we use v1.x.0 directly, but if there is a prefered version, we use it
var preferedKubeadmVersion = map[uint]string{
// TODO change the version to lastest version after https://github.com/kubernetes/kubeadm/issues/2426(a bug in v1.24) is fixed
24: "v1.24.2",
}
func upgradeCheck(current, target string) (isSupported, isCrossVersion, canSkip bool) {
currentVer, err := version.ParseSemantic(current)
if err != nil {
[change the version to lastest version after https://github.com/kubernetes/kubeadm/issues/2426(a bug in v1.24] is fixed
https://github.com/pacoxu/kubeadm-operator/blob/b5c5478c431d8c8e6485d3c9e3e0b890254f81b6/operations/version.go#L27
40ddfbde1603a49a8a6da54d8c0b1b230d6aac0d