Skip to content

Commit

Permalink
Merge branch 'refactor/add-node' into 'master'
Browse files Browse the repository at this point in the history
注册 node 的时候允许覆盖

See merge request !99
  • Loading branch information
tonic committed Jun 16, 2017
2 parents 0e4d2d6 + d8ace61 commit 80b7e56
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions store/etcd/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 80b7e56

Please sign in to comment.