From 93065e79d68cc1c50e4d00300221c7a76837ed0f Mon Sep 17 00:00:00 2001 From: Ryan Fredette Date: Tue, 24 Mar 2026 17:36:36 -0400 Subject: [PATCH] Allow prometheus test pods to access Ingress Operator metrics port New network policies will limit access to the Ingress Operator's metrics port to only pods within the openshift-monitoring namespace. Rather than creating test pods in the openshift-monitoring namespace, add a network policy that allows access to the metrics port from the test namespace. --- test/extended/prometheus/prometheus.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/extended/prometheus/prometheus.go b/test/extended/prometheus/prometheus.go index 56d86703003a..15526cfb22df 100644 --- a/test/extended/prometheus/prometheus.go +++ b/test/extended/prometheus/prometheus.go @@ -104,6 +104,7 @@ var _ = g.Describe("[sig-instrumentation][Late] Platform Prometheus targets", fu ports := []networkPolicyTarget{ {Namespace: "openshift-dns", Port: 9154}, {Namespace: "openshift-dns-operator", Port: 9393}, + {Namespace: "openshift-ingress-operator", Port: 9393}, } networkPolicies := BuildNetworkPolicies(oc.Namespace(), ports) for _, networkPolicy := range networkPolicies {