Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <[email protected]>
  • Loading branch information
xhebox committed Feb 4, 2024
1 parent 3331b27 commit 26b8ac9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/cluster/manager/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,6 @@ func buildTLSTask(
}

func genTiProxySessionCerts(dir string) error {
if _, err := os.Stat(filepath.Join(dir, "tiproxy-session.crt")); err == nil {
return nil
}

ca, err := crypto.NewCA("tiproxy")
if err != nil {
return err
Expand Down Expand Up @@ -947,12 +943,5 @@ func buildCertificateTasks(
}
})

if hasTiProxy {
// delete it, so tiup will generate a new cert next time to renew
if err := delTiProxySessionCerts(m.specManager.Path(name, spec.TempConfigPath)); err != nil {
return certificateTasks, err
}
}

return certificateTasks, iterErr
}

0 comments on commit 26b8ac9

Please sign in to comment.