mirror of https://github.com/k3s-io/k3s
Fix for cluster-reset backup from s3 when etcd snapshots are disabled (#8155)
* Fixed when the user disable the etcd snapshots, but want to backup from s3 Signed-off-by: Vitor <vitor.savian@suse.com>pull/8190/head
parent
8e945c53e7
commit
5a2506145e
|
@ -172,7 +172,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
|
||||||
serverConfig.ControlConfig.EtcdExposeMetrics = cfg.EtcdExposeMetrics
|
serverConfig.ControlConfig.EtcdExposeMetrics = cfg.EtcdExposeMetrics
|
||||||
serverConfig.ControlConfig.EtcdDisableSnapshots = cfg.EtcdDisableSnapshots
|
serverConfig.ControlConfig.EtcdDisableSnapshots = cfg.EtcdDisableSnapshots
|
||||||
|
|
||||||
if !cfg.EtcdDisableSnapshots {
|
if !cfg.EtcdDisableSnapshots || cfg.ClusterReset {
|
||||||
serverConfig.ControlConfig.EtcdSnapshotCompress = cfg.EtcdSnapshotCompress
|
serverConfig.ControlConfig.EtcdSnapshotCompress = cfg.EtcdSnapshotCompress
|
||||||
serverConfig.ControlConfig.EtcdSnapshotName = cfg.EtcdSnapshotName
|
serverConfig.ControlConfig.EtcdSnapshotName = cfg.EtcdSnapshotName
|
||||||
serverConfig.ControlConfig.EtcdSnapshotCron = cfg.EtcdSnapshotCron
|
serverConfig.ControlConfig.EtcdSnapshotCron = cfg.EtcdSnapshotCron
|
||||||
|
|
Loading…
Reference in New Issue