All types stored in etcd are now API objects.
This means I made an api.ContainerManifestList, and added a JSONBase to endpoints (and changed Name -> JSONBase.ID).
This commit is contained in:
@@ -52,7 +52,8 @@ func TestProxy(t *testing.T) {
|
||||
}
|
||||
|
||||
lb := NewLoadBalancerRR()
|
||||
lb.OnUpdate([]api.Endpoints{{"echo", []string{net.JoinHostPort("127.0.0.1", port)}}})
|
||||
lb.OnUpdate([]api.Endpoints{
|
||||
{JSONBase: api.JSONBase{ID: "echo"}, Endpoints: []string{net.JoinHostPort("127.0.0.1", port)}}})
|
||||
|
||||
p := NewProxier(lb)
|
||||
|
||||
|
Reference in New Issue
Block a user