From 721dd5e5758ebfaf5210b7737602e88a2682d882 Mon Sep 17 00:00:00 2001 From: Maxim Babushkin Date: Thu, 12 Feb 2026 17:10:31 +0200 Subject: [PATCH] Fix scorecard test failure Scorecard test fails with "namespace not found". Make sure the namespace is created before executing the scorecard flow. Signed-off-by: Maxim Babushkin --- tests/scorecard-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scorecard-test.sh b/tests/scorecard-test.sh index f4bdc9da4..f3133ab95 100755 --- a/tests/scorecard-test.sh +++ b/tests/scorecard-test.sh @@ -63,9 +63,9 @@ fi NAMESPACE="${SCORECARD_NAMESPACE:-default}" if [[ "${OCP}" == "true" ]]; then NAMESPACE="${SCORECARD_NAMESPACE:-scorecard-test}" - # Create namespace if it doesn't exist - oc create namespace "${NAMESPACE}" || true fi +# Create namespace if it doesn't exist +oc create namespace "${NAMESPACE}" || true # Run the test OPERATOR_SDK="${OPERATOR_SDK:-operator-sdk}"