From 46572c89941108c5bbd23fb0fb812b82028cdf9b Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Sun, 14 Jul 2024 00:14:43 +0000 Subject: [PATCH] Don't use server value from config file for etcd-snapshot commands Fixes an issue where running etcd-snapshot commands on a node that has a server address set in the config will manage snapshots on that server, instead of on the local node as intended. Signed-off-by: Brad Davidson --- pkg/cli/cmds/etcd_snapshot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cli/cmds/etcd_snapshot.go b/pkg/cli/cmds/etcd_snapshot.go index e97228d1e21b..1073c676186f 100644 --- a/pkg/cli/cmds/etcd_snapshot.go +++ b/pkg/cli/cmds/etcd_snapshot.go @@ -23,8 +23,8 @@ var EtcdSnapshotFlags = []cli.Flag{ DataDirFlag, ServerToken, &cli.StringFlag{ - Name: "server, s", - Usage: "(cluster) Server to connect to", + Name: "etcd-server, s", + Usage: "(cluster) Server with etcd role to connect to", EnvVar: version.ProgramUpper + "_URL", Value: "https://127.0.0.1:6443", Destination: &ServerConfig.ServerURL,