Skip to content

Commit

Permalink
Merge pull request #2113 from xrwang8/master
Browse files Browse the repository at this point in the history
 fix : redeployment failure when internal ip is modified
  • Loading branch information
ks-ci-bot authored Feb 13, 2024
2 parents 6f4455c + 45abd09 commit eb45f76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/kk/pkg/bootstrap/os/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ func (r *RemoveFiles) Execute(runtime connector.Runtime) error {
for _, file := range clusterFiles {
_, _ = runtime.GetRunner().SudoCmd(fmt.Sprintf("rm -rf %s", file), true)
}
// remove pki/etcd Path if it exists, otherwise it will cause the etcd reinstallation to fail if ip change
pkiPath := fmt.Sprintf("%s/pki/etcd", runtime.GetWorkDir())
_, _ = runtime.GetRunner().SudoCmd(fmt.Sprintf("rm -rf %s", pkiPath), true)
return nil
}

Expand Down

0 comments on commit eb45f76

Please sign in to comment.