mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 05:02:50 +00:00
Implement multi-port Endpoints
This is a part of multi-port services.
This commit is contained in:
@@ -185,7 +185,7 @@ func TestServicesFromZeroError(t *testing.T) {
|
||||
func TestEndpoints(t *testing.T) {
|
||||
endpoint := api.Endpoints{
|
||||
ObjectMeta: api.ObjectMeta{Name: "bar", ResourceVersion: "2"},
|
||||
Endpoints: []api.Endpoint{{IP: "127.0.0.1", Port: 9000}},
|
||||
Endpoints: []api.Endpoint{{IP: "127.0.0.1", Ports: []api.EndpointPort{{Port: 9000}}}},
|
||||
}
|
||||
|
||||
fakeWatch := watch.NewFake()
|
||||
@@ -235,7 +235,7 @@ func TestEndpoints(t *testing.T) {
|
||||
func TestEndpointsFromZero(t *testing.T) {
|
||||
endpoint := api.Endpoints{
|
||||
ObjectMeta: api.ObjectMeta{Name: "bar", ResourceVersion: "2"},
|
||||
Endpoints: []api.Endpoint{{IP: "127.0.0.1", Port: 9000}},
|
||||
Endpoints: []api.Endpoint{{IP: "127.0.0.1", Ports: []api.EndpointPort{{Port: 9000}}}},
|
||||
}
|
||||
|
||||
fakeWatch := watch.NewFake()
|
||||
|
Reference in New Issue
Block a user