From 268218377386ddfbc15442206d63ed93d9594a06 Mon Sep 17 00:00:00 2001 From: Brian Downs Date: Fri, 4 Jun 2021 09:18:16 -0700 Subject: [PATCH] add log message indicating etcd snapshots are disabled Signed-off-by: Brian Downs --- pkg/cli/server/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/cli/server/server.go b/pkg/cli/server/server.go index e72cdb4f7d..bba86a1b19 100644 --- a/pkg/cli/server/server.go +++ b/pkg/cli/server/server.go @@ -129,6 +129,10 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont serverConfig.ControlConfig.EtcdSnapshotCron = cfg.EtcdSnapshotCron serverConfig.ControlConfig.EtcdSnapshotDir = cfg.EtcdSnapshotDir serverConfig.ControlConfig.EtcdSnapshotRetention = cfg.EtcdSnapshotRetention + + if cfg.EtcdDisableSnapshots { + logrus.Info("ETCD snapshots are disabled") + } serverConfig.ControlConfig.EtcdDisableSnapshots = cfg.EtcdDisableSnapshots serverConfig.ControlConfig.EtcdExposeMetrics = cfg.EtcdExposeMetrics serverConfig.ControlConfig.EtcdS3 = cfg.EtcdS3