diff --git a/test/e2e/kubeclient/kubeclient.go b/test/e2e/kubeclient/kubeclient.go index e4eab41b..285f1b27 100644 --- a/test/e2e/kubeclient/kubeclient.go +++ b/test/e2e/kubeclient/kubeclient.go @@ -203,15 +203,15 @@ func (kc *KubeClient) CreateManagedCluster( i := 0 timeout := initialRetryTimeout for i < numOfRetries { - output, err := client.Create(ctx, managedcluster, metav1.CreateOptions{}) + _, err := client.Create(ctx, managedcluster, metav1.CreateOptions{}) if err == nil || apierrors.IsAlreadyExists(err) { break } - _, _ = fmt.Fprintf(GinkgoWriter, "client.Create: %+v\n", output) i++ if i == numOfRetries { Expect(err).NotTo(HaveOccurred(), "failed to create %s after %d retries", kind, numOfRetries) } + _, _ = fmt.Fprintf(GinkgoWriter, "Create ManagedCluster, attempt #%d failed, retrying after %d seconds...\n", i, timeout) time.Sleep(timeout) timeout *= 2 }