From c41747e563b5635b2b70dd25565c6151f6c5a9cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20St=C3=A4bler?= Date: Wed, 29 Apr 2026 12:08:41 +0200 Subject: [PATCH] Fix flaky metrics e2e test by adding curl retries The curl-metrics pod runs a single curl invocation. If the metrics endpoint is transiently unavailable when the pod starts, curl exits with a connection refused error and the pod enters Failed status, causing the test to time out. Add --retry, --retry-delay, and --retry-connrefused flags so curl retries on transient connection failures. --- test/e2e/metrics_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/metrics_test.go b/test/e2e/metrics_test.go index 47e0f37..6dbae93 100644 --- a/test/e2e/metrics_test.go +++ b/test/e2e/metrics_test.go @@ -157,7 +157,7 @@ var _ = Describe("Manager", func() { "name": "curl", "image": "curlimages/curl:latest", "command": ["/bin/sh", "-c"], - "args": ["curl -v %s.%s.svc.cluster.local:%s/metrics"], + "args": ["curl -v --retry 10 --retry-delay 5 --retry-connrefused %s.%s.svc.cluster.local:%s/metrics"], "securityContext": { "allowPrivilegeEscalation": false, "capabilities": {