Use endpoint annotation to recover container ports in e2e tests on Mesos

This commit is contained in:
Dr. Stefan Schimanski
2015-08-04 15:24:37 +02:00
parent c55e7bf731
commit f04f31f799
2 changed files with 27 additions and 6 deletions

View File

@@ -348,7 +348,7 @@ var _ = Describe("Kubectl client", func() {
endpoints, err := c.Endpoints(ns).Get(name)
Expect(err).NotTo(HaveOccurred())
uidToPort := getPortsByPodUID(endpoints.Subsets)
uidToPort := getContainerPortsByPodUID(endpoints)
if len(uidToPort) == 0 {
Logf("No endpoint found, retrying")
continue