align some of the pod start up times

This commit is contained in:
James Sturtevant
2021-04-02 11:29:38 -07:00
parent 5ad79eae2d
commit d0683b8ce2
5 changed files with 10 additions and 11 deletions

View File

@@ -59,7 +59,6 @@ const (
maxBackOffTolerance = time.Duration(1.3 * float64(kubelet.MaxContainerBackOff))
podRetryPeriod = 1 * time.Second
podRetryTimeout = 1 * time.Minute
podReadyTimeout = 2 * time.Minute
)
// testHostIP tests that a pod gets a host IP
@@ -931,7 +930,7 @@ var _ = SIGDescribe("Pods", func() {
framework.ExpectNoError(err, "failed to create Pod %v in namespace %v", testPod.ObjectMeta.Name, testNamespaceName)
ginkgo.By("watching for Pod to be ready")
ctx, cancel := context.WithTimeout(context.Background(), podReadyTimeout)
ctx, cancel := context.WithTimeout(context.Background(), f.Timeouts.PodStart)
defer cancel()
_, err = watchtools.Until(ctx, podsList.ResourceVersion, w, func(event watch.Event) (bool, error) {
if pod, ok := event.Object.(*v1.Pod); ok {