diff --git a/etcd-manager/README.md b/etcd-manager/README.md index 5815bccf3..3830f17a5 100644 --- a/etcd-manager/README.md +++ b/etcd-manager/README.md @@ -66,9 +66,9 @@ etcd cluster state: etcdClusterState members: {"name":"GEyIUF0s9J07setaePSQ3Q","peerURLs":["http://127.0.0.1:2380"],"clientURLs":["http://127.0.0.1:4001"],"ID":"4be33a4562894143"} peers: - etcdClusterPeerInfo{peer=peer{id:"yFQlUrhyV2P0i14oXydBbw" addresses:"127.0.0.3:8000" }, etcState=cluster_name:"test" node_configuration: } - etcdClusterPeerInfo{peer=peer{id:"GEyIUF0s9J07setaePSQ3Q" addresses:"127.0.0.1:8000" }, etcState=cluster_name:"test" node_configuration: etcd_state: > etcd_version:"2.2.1" > } - etcdClusterPeerInfo{peer=peer{id:"mW4JV4NzL-hO39BEU8gnhA" addresses:"127.0.0.2:8000" }, etcState=cluster_name:"test" node_configuration: } + etcdClusterPeerInfo{peer=peer{id:"yFQlUrhyV2P0i14oXydBbw" addresses:"127.0.0.3:8000" }, info=cluster_name:"test" node_configuration: } + etcdClusterPeerInfo{peer=peer{id:"GEyIUF0s9J07setaePSQ3Q" addresses:"127.0.0.1:8000" }, info=cluster_name:"test" node_configuration: etcd_state: > etcd_version:"2.2.1" > } + etcdClusterPeerInfo{peer=peer{id:"mW4JV4NzL-hO39BEU8gnhA" addresses:"127.0.0.2:8000" }, info=cluster_name:"test" node_configuration: } ``` Maintaining this state is essentially the core controller loop. The leader pings each peer, diff --git a/etcd-manager/pkg/controller/etcdclusterstate.go b/etcd-manager/pkg/controller/etcdclusterstate.go index e10a13edd..7af4684b1 100644 --- a/etcd-manager/pkg/controller/etcdclusterstate.go +++ b/etcd-manager/pkg/controller/etcdclusterstate.go @@ -70,7 +70,7 @@ type etcdClusterPeerInfo struct { } func (p *etcdClusterPeerInfo) String() string { - return fmt.Sprintf("etcdClusterPeerInfo{peer=%s, etcState=%s}", p.peer, p.info) + return fmt.Sprintf("etcdClusterPeerInfo{peer=%s, info=%s}", p.peer, p.info) } func (s *etcdClusterState) etcdAddMember(ctx context.Context, nodeInfo *protoetcd.EtcdNode) (*etcdclient.EtcdProcessMember, error) {