From f94674a2288a4fac8d62bc24f99d3ec728621661 Mon Sep 17 00:00:00 2001 From: Nawaz Hussain Khazielakha Date: Wed, 11 Dec 2024 12:46:05 -0800 Subject: [PATCH] fix errors --- test/e2e/azure_apiserver_ilb.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/e2e/azure_apiserver_ilb.go b/test/e2e/azure_apiserver_ilb.go index 4bc5385bef5..1241276f948 100644 --- a/test/e2e/azure_apiserver_ilb.go +++ b/test/e2e/azure_apiserver_ilb.go @@ -223,6 +223,12 @@ func AzureAPIServerILBSpec(ctx context.Context, inputGetter func() AzureAPIServe err = workloadClusterClient.Create(ctx, nodeDebugDS) Expect(err).NotTo(HaveOccurred()) + backoff = wait.Backoff{ + Duration: 100 * time.Second, + Factor: 0.5, + Jitter: 0.5, + Steps: 5, + } retryDSFn := func(ctx context.Context) (bool, error) { defer GinkgoRecover() @@ -317,9 +323,8 @@ func AzureAPIServerILBSpec(ctx context.Context, inputGetter func() AzureAPIServe scheme.ParameterCodec, ) - podExecOperationTimeout := 60 * time.Second + podExecOperationTimeout := 10 * time.Second podExecOperationSleepBetweenRetries := 3 * time.Second - Eventually(func(g Gomega) { exec, err := remotecommand.NewSPDYExecutor(workloadClusterKubeConfig, "POST", req.URL()) g.Expect(err).NotTo(HaveOccurred())