From ff90deb4ddb3f782f4939530096fcd999dfbba5a Mon Sep 17 00:00:00 2001 From: ravisantoshgudimetla Date: Mon, 2 Aug 2021 15:46:46 -0400 Subject: [PATCH] Ignore openshift-marketplace pods --- test/extended/pods/priorityclasses.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/extended/pods/priorityclasses.go b/test/extended/pods/priorityclasses.go index f60b07527afd..219cf9764aa5 100644 --- a/test/extended/pods/priorityclasses.go +++ b/test/extended/pods/priorityclasses.go @@ -49,15 +49,16 @@ var _ = Describe("[sig-arch] Managed cluster should", func() { if !hasPrefixSet(pod.Namespace, namespacePrefixes) { continue } + // OpenShift marketplace can have workloads pods that are created from Jobs which just have hashes + // They can be safely ignored as they're not part of core platform. + // In future, if this assumption changes, we can revisit it. + if pod.Namespace == "openshift-marketplace" { + continue + } var componentName string lastHyphenIndex := strings.LastIndex(pod.Name, "-") if lastHyphenIndex > 0 { componentName = pod.Name[:lastHyphenIndex] - } else if lastHyphenIndex == -1 && pod.Namespace == "openshift-marketplace" { - // OpenShift marketplace can have workloads pods that are created from Jobs which just have hashes - // They can be safely ignored as they're not part of core platform. - // In future, if this assumption changes, we can revisit it. - continue } knownBugKey = componentName labels := pod.ObjectMeta.Labels