mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Revert "Multi-port Endpoints"
This commit is contained in:
@@ -250,11 +250,8 @@ var _ = Describe("Services", func() {
|
||||
func validateIPsOrFail(c *client.Client, ns string, expectedPort int, expectedEndpoints []string, endpoints *api.Endpoints) {
|
||||
ips := util.StringSet{}
|
||||
for _, ep := range endpoints.Endpoints {
|
||||
if len(ep.Ports) == 0 {
|
||||
Fail(fmt.Sprintf("invalid endpoint, no ports"))
|
||||
}
|
||||
if ep.Ports[0].Port != expectedPort {
|
||||
Fail(fmt.Sprintf("invalid port, expected %d, got %d", expectedPort, ep.Ports[0].Port))
|
||||
if ep.Port != expectedPort {
|
||||
Fail(fmt.Sprintf("invalid port, expected %d, got %d", expectedPort, ep.Port))
|
||||
}
|
||||
ips.Insert(ep.IP)
|
||||
}
|
||||
@@ -299,7 +296,7 @@ func addEndpointPodOrFail(c *client.Client, ns, name string, labels map[string]s
|
||||
{
|
||||
Name: "test",
|
||||
Image: "kubernetes/pause",
|
||||
Ports: []api.ContainerPort{{ContainerPort: 80}},
|
||||
Ports: []api.Port{{ContainerPort: 80}},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user