From b117922d9d52becdf92fc178d7c337557aa23712 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Fri, 24 Mar 2023 22:19:44 +0000 Subject: [PATCH] Ensure that loopback is used for all addresses when resetting Signed-off-by: Brad Davidson --- pkg/etcd/etcd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/etcd/etcd.go b/pkg/etcd/etcd.go index 6389641b2536..89f5db3797c9 100644 --- a/pkg/etcd/etcd.go +++ b/pkg/etcd/etcd.go @@ -832,6 +832,9 @@ func (e *ETCD) listenMetricsURLs(reset bool) string { // cluster calls the executor to start etcd running with the provided configuration. func (e *ETCD) cluster(ctx context.Context, reset bool, options executor.InitialOptions) error { ctx, e.cancel = context.WithCancel(ctx) + if reset { + e.address = e.config.Loopback(true) + } return executor.ETCD(ctx, executor.ETCDConfig{ Name: e.name, InitialOptions: options,