From 6d7b70724364dcc5996d3e174ca32414fb9db0b3 Mon Sep 17 00:00:00 2001 From: lihongyan1 Date: Fri, 10 Jan 2025 21:46:48 +0800 Subject: [PATCH] fix: failed to get metric when install upstream ObO on OCP (#654) enable platform monitoring --- test/run-e2e-ocp.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/run-e2e-ocp.sh b/test/run-e2e-ocp.sh index 7f276741..75538d89 100755 --- a/test/run-e2e-ocp.sh +++ b/test/run-e2e-ocp.sh @@ -68,6 +68,10 @@ enable_ocp() { oc apply -f "$CSV_JSON_FILE" rm -f "$CSV_JSON_FILE" + + # enable platform monitoring + oc label ns "$OPERATORS_NS" openshift.io/cluster-monitoring=true + oc wait --for=condition=Established crd/uiplugins.observability.openshift.io --timeout=60s ok "Enable OCP mode successfully" }