From 5896188134f504e21f8a0eb523352d73713f6a94 Mon Sep 17 00:00:00 2001 From: Forrest Babcock Date: Sun, 9 Feb 2025 08:06:46 -0500 Subject: [PATCH] NO-JIRA: Skip pods for ns openshift-infra --- .../terminationmessagepolicy/monitortest.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/monitortests/clusterversionoperator/terminationmessagepolicy/monitortest.go b/pkg/monitortests/clusterversionoperator/terminationmessagepolicy/monitortest.go index a35101c607e2..097eaf3f1122 100644 --- a/pkg/monitortests/clusterversionoperator/terminationmessagepolicy/monitortest.go +++ b/pkg/monitortests/clusterversionoperator/terminationmessagepolicy/monitortest.go @@ -89,6 +89,13 @@ func (w *terminationMessagePolicyChecker) CollectData(ctx context.Context, stora if strings.HasPrefix(pod.Namespace, "openshift-must-gather") { continue } + // namespace does not show up consistently so we get + // 1 pass or flake out of 10 runs and fail due to not + // enough passes + if strings.HasPrefix(pod.Namespace, "openshift-infra") { + continue + } + if _, ok := failuresByNamespace[pod.Namespace]; !ok { failuresByNamespace[pod.Namespace] = []string{} }