plugin/etcd: the etcd client adds the DialKeepAliveTime parameter (#6351)
This commit is contained in:
parent
8964fc2180
commit
7765aa87a4
1 changed files with 3 additions and 2 deletions
|
@ -101,6 +101,7 @@ func newEtcdClient(endpoints []string, cc *tls.Config, username, password string
|
|||
etcdCfg := etcdcv3.Config{
|
||||
Endpoints: endpoints,
|
||||
TLS: cc,
|
||||
DialKeepAliveTime: etcdTimeout,
|
||||
}
|
||||
if username != "" && password != "" {
|
||||
etcdCfg.Username = username
|
||||
|
|
Loading…
Add table
Reference in a new issue