Skip to content

Commit

Permalink
Merge pull request #850 from chaunceyjiang/fix_793
Browse files Browse the repository at this point in the history
Support [--yes] parameter when upgrade cluster
  • Loading branch information
ks-ci-bot committed Dec 9, 2021
2 parents b5a41a0 + 60025e1 commit 16712b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/ctl/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (o *UpgradeOptions) Run() error {
KsVersion: o.KubeSphere,
SkipPullImages: o.SkipPullImages,
Debug: o.CommonOptions.Verbose,
SkipConfirmCheck: o.CommonOptions.SkipConfirmCheck,
}
return pipelines.UpgradeCluster(arg, o.DownloadCmd)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipelines/upgrade_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func NewUpgradeClusterPipeline(runtime *common.KubeRuntime) error {
m := []module.Module{
&precheck.NodePreCheckModule{},
&precheck.ClusterPreCheckModule{},
&confirm.UpgradeConfirmModule{},
&confirm.UpgradeConfirmModule{Skip: runtime.Arg.SkipConfirmCheck},
&os.ConfigureOSModule{},
&kubernetes.SetUpgradePlanModule{Step: kubernetes.ToV121},
&kubernetes.ProgressiveUpgradeModule{Step: kubernetes.ToV121},
Expand Down

0 comments on commit 16712b0

Please sign in to comment.