e2e: pass --ignore-not-found=true when deleting resources

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-02-15 09:25:28 +01:00 committed by mergify[bot]
parent a669258688
commit ea89b26f65

View File

@ -146,7 +146,7 @@ func deleteResource(scPath string) error {
if err != nil {
e2elog.Logf("failed to read content from %s %v", scPath, err)
}
err = retryKubectlInput(cephCSINamespace, kubectlDelete, data, deployTimeout)
err = retryKubectlInput(cephCSINamespace, kubectlDelete, data, deployTimeout, "--ignore-not-found=true")
if err != nil {
e2elog.Logf("failed to delete %s %v", scPath, err)
}