From 3922cfc860b48f25e9bbbb46d4b97e8f9e7753ad Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 17 Feb 2022 16:15:21 +0530 Subject: [PATCH] e2e: consider not found error in deployment check it might need sometime for the deployment to get created, consider the NotFound as a valid error and retry again. Signed-off-by: Madhu Rajanna --- e2e/deployment.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/deployment.go b/e2e/deployment.go index b70bf1904..40963ff57 100644 --- a/e2e/deployment.go +++ b/e2e/deployment.go @@ -140,6 +140,9 @@ func waitForDeploymentComplete(clientSet kubernetes.Interface, name, ns string, if isRetryableAPIError(err) { return false, nil } + if apierrs.IsNotFound(err) { + return false, nil + } e2elog.Logf("deployment error: %v", err) return false, err