Compare commits

...

1 Commits

Author SHA1 Message Date
dkeven
e7133d5033 fix(cli): clear master host config when uninstalling 2026-02-04 21:58:39 +08:00
2 changed files with 5 additions and 0 deletions

View File

@@ -385,6 +385,10 @@ func (a *Argument) loadMasterHostConfig() {
}
}
func (a *Argument) ClearMasterHostConfig() {
a.MasterHostConfig = &MasterHostConfig{}
}
func (a *Argument) SetManifest(manifest string) {
a.Manifest = manifest
}

View File

@@ -23,6 +23,7 @@ func UninstallTerminusPipeline() error {
arg.SetConsoleLog("uninstall.log", true)
arg.SetKubeVersion(kubeType)
arg.SetStorage(getStorageConfig())
arg.ClearMasterHostConfig()
phase := viper.GetString(common.FlagUninstallPhase)
all := viper.GetBool(common.FlagUninstallAll)