From d8ace613aad67795488aef3d35e282eda6c40275 Mon Sep 17 00:00:00 2001 From: timfeirg Date: Fri, 16 Jun 2017 15:43:51 +0800 Subject: [PATCH] =?UTF-8?q?[skip=20ci]=20=E6=B3=A8=E5=86=8C=20node=20?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E5=85=81=E8=AE=B8=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/etcd/node.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/store/etcd/node.go b/store/etcd/node.go index cd80c9889..47caeb011 100644 --- a/store/etcd/node.go +++ b/store/etcd/node.go @@ -95,9 +95,6 @@ func (k *krypton) AddNode(name, endpoint, podname, cafile, certfile, keyfile str } key := fmt.Sprintf(nodeInfoKey, podname, name) - if _, err := k.etcd.Get(context.Background(), key, nil); err == nil { - return nil, fmt.Errorf("Node (%s, %s) already exists", podname, name) - } // 如果有tls的证书需要保存就保存一下 if cafile != "" && certfile != "" && keyfile != "" {