From 20afdf2172b0338144ac6c9cab882531d6898a15 Mon Sep 17 00:00:00 2001 From: Mike Kolesnik Date: Mon, 17 Nov 2025 11:29:43 +0200 Subject: [PATCH] Make sure to skip cleanup of operator in e2e In case it was requested, don't delete the deployed operator. Signed-off-by: Mike Kolesnik --- tests/e2e/common-operator-integ-suite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/common-operator-integ-suite.sh b/tests/e2e/common-operator-integ-suite.sh index 8a264eae3..668f924d8 100755 --- a/tests/e2e/common-operator-integ-suite.sh +++ b/tests/e2e/common-operator-integ-suite.sh @@ -195,7 +195,7 @@ uninstall_operator() { cleanup() { # Do not let cleanup errors affect the final exit code set +e - if [ "${OLM}" != "true" ] && [ "${SKIP_DEPLOY}" != "true" ]; then + if [ "${OLM}" != "true" ] && [ "${SKIP_DEPLOY}" != "true" ] && [ "${SKIP_CLEANUP}" != "true" ]; then if [ "${MULTICLUSTER}" == true ]; then KUBECONFIG="${KUBECONFIG}" uninstall_operator || true # shellcheck disable=SC2153 # KUBECONFIG2 is set by multicluster setup scripts @@ -300,4 +300,4 @@ go run github.com/onsi/ginkgo/v2/ginkgo -tags e2e \ --timeout 60m --junit-report="${ARTIFACTS}/report.xml" ${GINKGO_FLAGS:-} "${WD}"/... TEST_EXIT_CODE=$? -exit "${TEST_EXIT_CODE}" \ No newline at end of file +exit "${TEST_EXIT_CODE}"