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

support upgrade to v1.n-1~v1.n of current kubernetes server version. #54

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

support upgrade to v1.n-1~v1.n of current kubernetes server version.

If the current kubernetes server version is v1.n-2 which is below the target version, we need to generate a further upgrade plan

https://github.com/pacoxu/kubeadm-operator/blob/4362c623e4b00efd8612cd56cbd6b2d65a51a348/operations/upgrade.go#L28


func planUpgrade(operation *operatorv1.Operation, spec *operatorv1.UpgradeOperationSpec) *operatorv1.RuntimeTaskGroupList {
    // TODO support upgrade to v1.n-1~v1.n of current kubernetes server version.
    // If the current kubernetes server version is v1.n-2 which is below the target version, we need to generate a further upgrade plan

    var items []operatorv1.RuntimeTaskGroup
    dryRun := operation.Spec.GetTypedOperationExecutionMode() == operatorv1.OperationExecutionModeDryRun

584308d31e13a73f3a48209f7d077771027890d5

github-actions[bot] commented 2 years ago

Closed in 9721e44e8e2f00b767972cbd69f857eb3ce153c5

pacoxu commented 2 years ago

fixed by https://github.com/pacoxu/kubeadm-operator/pull/73

There is testing results & steps in the pull request.