1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-26 07:14:54 +00:00

add timeout to etcd member add

This commit is contained in:
Kinara Shah
2024-03-20 13:01:33 -07:00
parent d8e620b80c
commit 9c090b77aa
2 changed files with 14 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ func getEtcdClientV3(ctx context.Context, etcdHost *hosts.Host, localConnDialerF
Endpoints: []string{"https://" + etcdHost.InternalAddress + ":2379"},
TLS: tlsConfig,
DialOptions: []grpc.DialOption{grpc.WithContextDialer(wrapper(dialer))},
DialTimeout: 5 * time.Second,
}
return etcdclientv3.New(cfg)