pacoxu / kubeadm-operator

Test work on the design of kubeadm operator. Also you can try https://github.com/chendave/kubeadm-operator
Apache License 2.0
10 stars 2 forks source link

[change the version to lastest version after https://github.com/kubernetes/kubea... #84

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

[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

)

// 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 {

40ddfbde1603a49a8a6da54d8c0b1b230d6aac0d

pacoxu commented 2 years ago

pending on https://github.com/kubernetes/kubernetes/pull/110634