test: Exclude a specific set of named pods from failure detection
Some of the operator tests must create pods within the openshift
namespaces and they can report failures. Exclude them explicitly.
@@ -81,6 +81,9 @@ var _ = g.Describe("[Feature:Platform] Managed cluster should", func() {
ns := make(map[string]struct{})
for _, pod := range podsWithProblems {
delete(lastPending, fmt.Sprintf("%s/%s", pod.Namespace, pod.Name))
+ if strings.HasPrefix(pod.Name, "samename-") {
+ continue
+ }
if _, ok := ns[pod.Namespace]; !ok {
e2e.DumpAllNamespaceInfo(c, pod.Namespace)
ns[pod.Namespace] = struct{}{}
