From d2fe4e6d40e88b43e22d0a80517ef9c0a7353cb3 Mon Sep 17 00:00:00 2001 From: Markus Rudy Date: Thu, 18 Apr 2024 13:47:58 +0200 Subject: [PATCH] e2e: don't loop infinitely after failed watch --- e2e/internal/kubeclient/deploy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/e2e/internal/kubeclient/deploy.go b/e2e/internal/kubeclient/deploy.go index 1d0e58a4c..69aa14e06 100644 --- a/e2e/internal/kubeclient/deploy.go +++ b/e2e/internal/kubeclient/deploy.go @@ -94,6 +94,7 @@ func (c *Kubeclient) WaitForDeployment(ctx context.Context, namespace, name stri logger.Debug("pod not ready", "name", pod.Name, "status", c.toJSON(pod.Status)) } } + return ctx.Err() } } }