Fix for etcd3 TLS config options

pull/6/head
Timothy St. Clair 2016-08-22 22:17:41 -05:00
parent 49b7ebd791
commit 99e017661a
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,11 @@ func newETCD3Storage(c storagebackend.Config) (storage.Interface, error) {
if err != nil {
return nil, err
}
// NOTE: Client relies on nil tlsConfig
// for non-secure connections, update the implicit variable
if len(c.CertFile) == 0 && len(c.KeyFile) == 0 && len(c.CAFile) == 0 {
tlsConfig = nil
}
cfg := clientv3.Config{
Endpoints: c.ServerList,
TLS: tlsConfig,