Skip to content

Commit

Permalink
Ensure that loopback is used for all addresses when resetting
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
  • Loading branch information
brandond committed Mar 24, 2023
1 parent b7f90f3 commit b117922
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b117922

Please sign in to comment.