Skip to content

Commit

Permalink
Update installer.go
Browse files Browse the repository at this point in the history
  • Loading branch information
clcc2019 authored Aug 29, 2024
1 parent 83a5297 commit 91623fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/sealer/cmd/cluster/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (i AppInstaller) Install(imageName string, options AppInstallOptions) error
//save and commit
i.cf.SetApplication(i.appDriver.GetApplication())
confPath := clusterruntime.GetClusterConfPath(i.imageExtension.Labels)
if err := i.cf.SaveAll(clusterfile.SaveOptions{CommitToCluster: true, ConfPath: confPath}); err != nil {
if err := i.cf.SaveAll(clusterfile.SaveOptions{CommitToCluster: false, ConfPath: confPath}); err != nil {
return err
}

Expand Down Expand Up @@ -350,7 +350,7 @@ func (k KubeInstaller) Install(kubeImageName string, options KubeInstallOptions)

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

Expand Down Expand Up @@ -436,7 +436,7 @@ func (k KubeInstaller) ScaleUp(scaleUpMasterIPList, scaleUpNodeIPList []net.IP,
}

confPath := clusterruntime.GetClusterConfPath(k.imageSpec.ImageExtension.Labels)
if err = k.cf.SaveAll(clusterfile.SaveOptions{CommitToCluster: true, ConfPath: confPath}); err != nil {
if err = k.cf.SaveAll(clusterfile.SaveOptions{CommitToCluster: false, ConfPath: confPath}); err != nil {
return err
}

Expand Down Expand Up @@ -519,7 +519,7 @@ func (k KubeInstaller) ScaleDown(deleteMasterIPList, deleteNodeIPList []net.IP,
k.cf.SetCluster(cluster)

confPath := clusterruntime.GetClusterConfPath(k.imageSpec.ImageExtension.Labels)
if err = k.cf.SaveAll(clusterfile.SaveOptions{CommitToCluster: true, ConfPath: confPath}); err != nil {
if err = k.cf.SaveAll(clusterfile.SaveOptions{CommitToCluster: false, ConfPath: confPath}); err != nil {
return err
}

Expand Down

0 comments on commit 91623fa

Please sign in to comment.