Skip to content

Commit

Permalink
Fix for cluster-reset backup from s3 when etcd snapshots are disabled (
Browse files Browse the repository at this point in the history
…#8155)

* Fixed when the user disable the etcd snapshots, but want to backup from s3

Signed-off-by: Vitor <[email protected]>
  • Loading branch information
vitorsavian committed Aug 10, 2023
1 parent 9fc75e7 commit c6f28ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
serverConfig.ControlConfig.EtcdExposeMetrics = cfg.EtcdExposeMetrics
serverConfig.ControlConfig.EtcdDisableSnapshots = cfg.EtcdDisableSnapshots

if !cfg.EtcdDisableSnapshots {
if !cfg.EtcdDisableSnapshots || cfg.ClusterReset {
serverConfig.ControlConfig.EtcdSnapshotCompress = cfg.EtcdSnapshotCompress
serverConfig.ControlConfig.EtcdSnapshotName = cfg.EtcdSnapshotName
serverConfig.ControlConfig.EtcdSnapshotCron = cfg.EtcdSnapshotCron
Expand Down

0 comments on commit c6f28ae

Please sign in to comment.