From dbf2eb3905038f9c384f49d06eea857ccff126fd Mon Sep 17 00:00:00 2001 From: Rakshith R Date: Thu, 26 Aug 2021 16:15:02 +0530 Subject: [PATCH] e2e: ignore lines with 'Warning' in isAlreadyExistsCliError() Signed-off-by: Rakshith R --- e2e/errors.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/errors.go b/e2e/errors.go index 31aad8ad0..fc84c8d35 100644 --- a/e2e/errors.go +++ b/e2e/errors.go @@ -103,6 +103,10 @@ func isAlreadyExistsCLIError(err error) bool { if strings.TrimSuffix(s, "\n") == "" { continue } + // Ignore warnings + if strings.Contains(s, "Warning") { + continue + } // Resource already exists error message if !strings.Contains(s, "Error from server (AlreadyExists)") { return false