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 <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2022-02-17 16:15:21 +05:30 committed by mergify[bot]
parent 9c50e255fb
commit 3922cfc860

View File

@ -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