From 8f2db0f73e401dad000809cb3985784f10ebbc5a Mon Sep 17 00:00:00 2001 From: Maja Bojarska Date: Sat, 11 Jan 2025 14:15:11 +0100 Subject: [PATCH] Align etcd-snapshot-dir default path description The effective snapshot dir is "${data-dir}/server/db/snapshots". The server segment is missing in the CLI-reported default path, potentially misleading the user about the actual default snapshot destination. Signed-off-by: Maja Bojarska --- pkg/cli/cmds/etcd_snapshot.go | 2 +- pkg/cli/cmds/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cli/cmds/etcd_snapshot.go b/pkg/cli/cmds/etcd_snapshot.go index 378b394f0a83..fd2ae7586936 100644 --- a/pkg/cli/cmds/etcd_snapshot.go +++ b/pkg/cli/cmds/etcd_snapshot.go @@ -34,7 +34,7 @@ var EtcdSnapshotFlags = []cli.Flag{ }, &cli.StringFlag{ Name: "dir,etcd-snapshot-dir", - Usage: "(db) Directory to save etcd on-demand snapshot. (default: ${data-dir}/db/snapshots)", + Usage: "(db) Directory to save etcd on-demand snapshot. (default: ${data-dir}/server/db/snapshots)", Destination: &ServerConfig.EtcdSnapshotDir, }, &cli.StringFlag{ diff --git a/pkg/cli/cmds/server.go b/pkg/cli/cmds/server.go index 885276f85392..5ad71386e432 100644 --- a/pkg/cli/cmds/server.go +++ b/pkg/cli/cmds/server.go @@ -397,7 +397,7 @@ var ServerFlags = []cli.Flag{ }, &cli.StringFlag{ Name: "etcd-snapshot-dir", - Usage: "(db) Directory to save db snapshots. (default: ${data-dir}/db/snapshots)", + Usage: "(db) Directory to save db snapshots. (default: ${data-dir}/server/db/snapshots)", Destination: &ServerConfig.EtcdSnapshotDir, }, &cli.BoolFlag{