pull/6/head
Hongchao Deng 2016-08-21 21:08:16 -07:00
parent 6e4f80909d
commit 41d14d665e
1 changed files with 1 additions and 7 deletions

View File

@ -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)