mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
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:
parent
edc1aa41bf
commit
230f102410
|
|
@ -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()},
|
||||
|
|
|
|||
Loading…
Reference in New Issue