As ClientConn.State() of gRPC has disappeared, we need to avoid using ClientConn.State(). Instead we should make use of gRPC rebalancer mechanism, just like etcdv3 is doing. To do that, introduce simpleBalancer, as a minimum structure to be used for grpc.Balancer.
This PR contains only the relevant code of https://github.com/coreos/fleet/pull/1673, without vendor updates.
As
ClientConn.State()
of gRPC has disappeared, we need to avoid usingClientConn.State()
. Instead we should make use of gRPC rebalancer mechanism, just like etcdv3 is doing. To do that, introducesimpleBalancer
, as a minimum structure to be used for grpc.Balancer./cc @hectorj2f