Skip to content

Commit

Permalink
[skip ci] 注册 node 的时候允许覆盖
Browse files Browse the repository at this point in the history
  • Loading branch information
timfeirg committed Jun 16, 2017
1 parent 0e4d2d6 commit d8ace61
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 d8ace61

Please sign in to comment.