cleanup: do not need to exec init_os script when upgrading the k8s cluster

Signed-off-by: 24sama <jacksama@foxmail.com>
This commit is contained in:
24sama 2022-06-28 11:34:04 +08:00
parent edc1aa41bf
commit 230f102410

View File

@ -18,9 +18,11 @@ package pipelines
import (
"fmt"
"github.com/pkg/errors"
"github.com/kubesphere/kubekey/pkg/artifact"
"github.com/kubesphere/kubekey/pkg/bootstrap/confirm"
"github.com/kubesphere/kubekey/pkg/bootstrap/os"
"github.com/kubesphere/kubekey/pkg/bootstrap/precheck"
"github.com/kubesphere/kubekey/pkg/certs"
"github.com/kubesphere/kubekey/pkg/common"
@ -30,7 +32,6 @@ import (
"github.com/kubesphere/kubekey/pkg/kubernetes"
"github.com/kubesphere/kubekey/pkg/kubesphere"
"github.com/kubesphere/kubekey/pkg/loadbalancer"
"github.com/pkg/errors"
)
func NewUpgradeClusterPipeline(runtime *common.KubeRuntime) error {
@ -42,7 +43,6 @@ func NewUpgradeClusterPipeline(runtime *common.KubeRuntime) error {
&precheck.ClusterPreCheckModule{},
&confirm.UpgradeConfirmModule{Skip: runtime.Arg.SkipConfirmCheck},
&artifact.UnArchiveModule{Skip: noArtifact},
&os.ConfigureOSModule{},
&kubernetes.SetUpgradePlanModule{Step: kubernetes.ToV121},
&kubernetes.ProgressiveUpgradeModule{Step: kubernetes.ToV121},
&loadbalancer.HaproxyModule{Skip: !runtime.Cluster.ControlPlaneEndpoint.IsInternalLBEnabled()},