From 41d14d665ebba7814c1ec34208177e5daf91108b Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Sun, 21 Aug 2016 21:08:16 -0700 Subject: [PATCH] fix --- pkg/storage/storagebackend/factory/etcd3.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/storage/storagebackend/factory/etcd3.go b/pkg/storage/storagebackend/factory/etcd3.go index 14fbc48486..9fea1785f5 100644 --- a/pkg/storage/storagebackend/factory/etcd3.go +++ b/pkg/storage/storagebackend/factory/etcd3.go @@ -17,8 +17,6 @@ limitations under the License. package factory import ( - "strings" - "k8s.io/kubernetes/pkg/storage" "k8s.io/kubernetes/pkg/storage/etcd3" "k8s.io/kubernetes/pkg/storage/storagebackend" @@ -39,12 +37,8 @@ func newETCD3Storage(c storagebackend.Config) (storage.Interface, error) { return nil, err } - endpoints := c.ServerList - for i, s := range endpoints { - endpoints[i] = strings.TrimLeft(s, "http://") - } cfg := clientv3.Config{ - Endpoints: endpoints, + Endpoints: c.ServerList, TLS: tlsConfig, } client, err := clientv3.New(cfg)