Rework pod waiting mechanism in e2e tests to accept pod and watch based
on its ResourceVersion to make sure we catch all the events.
This commit is contained in:
@@ -245,7 +245,8 @@ func verifyDNSPodIsRunning(f *framework.Framework) {
|
||||
if len(dnsPods.Items) < 1 {
|
||||
framework.Failf("No pods match the label selector %v", dnsServiceLabelSelector.String())
|
||||
}
|
||||
framework.ExpectNoError(framework.WaitForPodRunningInNamespace(f.Client, dnsPods.Items[0].Name, api.NamespaceSystem))
|
||||
pod := dnsPods.Items[0]
|
||||
framework.ExpectNoError(framework.WaitForPodRunningInNamespace(f.Client, &pod))
|
||||
}
|
||||
|
||||
func createServiceSpec(serviceName string, isHeadless bool, selector map[string]string) *api.Service {
|
||||
|
||||
Reference in New Issue
Block a user