From e2eb1e267bb4772c860c55d36471131e8e1c8d66 Mon Sep 17 00:00:00 2001 From: IvanHunters Date: Mon, 3 Nov 2025 10:53:47 +0300 Subject: [PATCH] [e2e] Increase Kubernetes connection timeouts This patch increases the connection and request timeouts used in the E2E tests when communicating with the Kubernetes API. The change improves test stability under high load and slow cluster response conditions. ```release-note [e2e] Increase connection and request timeouts for Kubernetes API calls in E2E tests to improve stability. ``` Signed-off-by: IvanHunters --- hack/e2e-apps/run-kubernetes.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/e2e-apps/run-kubernetes.sh b/hack/e2e-apps/run-kubernetes.sh index 716b40dc..1446b093 100644 --- a/hack/e2e-apps/run-kubernetes.sh +++ b/hack/e2e-apps/run-kubernetes.sh @@ -87,14 +87,14 @@ EOF # Set up port forwarding to the Kubernetes API server for a 200 second timeout - bash -c 'timeout 200s kubectl port-forward service/kubernetes-'"${test_name}"' -n tenant-test '"${port}"':6443 > /dev/null 2>&1 &' + bash -c 'timeout 300s kubectl port-forward service/kubernetes-'"${test_name}"' -n tenant-test '"${port}"':6443 > /dev/null 2>&1 &' # Verify the Kubernetes version matches what we expect (retry for up to 20 seconds) timeout 20 sh -ec 'until kubectl --kubeconfig tenantkubeconfig version 2>/dev/null | grep -Fq "Server Version: ${k8s_version}"; do sleep 5; done' # Wait for the nodes to be ready (timeout after 2 minutes) - timeout 2m bash -c ' + timeout 3m bash -c ' until [ "$(kubectl --kubeconfig tenantkubeconfig get nodes -o jsonpath="{.items[*].metadata.name}" | wc -w)" -eq 2 ]; do - sleep 3 + sleep 2 done ' # Verify the nodes are ready