Skip to content

Commit

Permalink
Update upgrade.go
Browse files Browse the repository at this point in the history
  • Loading branch information
clcc2019 authored Aug 29, 2024
1 parent 4366a58 commit 11825cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/sealer/cmd/cluster/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ import (

var (
exampleForUpgradeCmd = `
sealer upgrade docker.io/sealerio/kubernetes:v1.22.15-upgrade
sealer upgrade -f Clusterfile
sealer upgrade -f upgrade.yaml
`
longDescriptionForUpgradeCmd = `upgrade command is used to upgrade a Kubernetes cluster via specified Clusterfile.`
)
Expand Down Expand Up @@ -209,7 +208,7 @@ func upgradeCluster(cf clusterfile.Interface, imageEngine imageengine.Interface,
}

//save and commit
if err = cf.SaveAll(clusterfile.SaveOptions{CommitToCluster: true, ConfPath: confPath}); err != nil {
if err = cf.SaveAll(clusterfile.SaveOptions{CommitToCluster: false, ConfPath: confPath}); err != nil {
return err
}

Expand Down

0 comments on commit 11825cd

Please sign in to comment.