From cc276ca93710d503e3c556195a2b9853c2a6c39a Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Fri, 11 Apr 2025 05:08:17 -0500 Subject: [PATCH] Ignore error message case in comparison for ignorable messages. (#583) Co-authored-by: Martin --- internal/provider/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/helpers.go b/internal/provider/helpers.go index 7709ddf9..1ae864a8 100644 --- a/internal/provider/helpers.go +++ b/internal/provider/helpers.go @@ -127,7 +127,7 @@ func testCheckLabelMap(name string, partialKey string, expectedLabels map[string // message to ignore. Returns true if so, false otherwise (also if no ignorable message is given) func containsIgnorableErrorMessage(errorMsg string, ignorableErrorMessages ...string) bool { for _, ignorableErrorMessage := range ignorableErrorMessages { - if strings.Contains(errorMsg, ignorableErrorMessage) { + if strings.Contains(strings.ToLower(errorMsg), strings.ToLower(ignorableErrorMessage)) { return true } }