From 37ad98f003d89ba71fe645b803feac9a692b9e6f Mon Sep 17 00:00:00 2001 From: Bob Fournier Date: Mon, 23 Mar 2026 20:33:21 -0400 Subject: [PATCH] NO-JIRA: Set DISABLE_IMAGE_POLICY for local nightly installs --- common.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.sh b/common.sh index 6d5013b1f..6ea69fe29 100644 --- a/common.sh +++ b/common.sh @@ -181,6 +181,12 @@ if [[ -z "$OPENSHIFT_CI" ]]; then export OPENSHIFT_VERSION=${OPENSHIFT_VERSION:-$(echo $OPENSHIFT_RELEASE_IMAGE | sed "s/.*:\([[:digit:]]\.[[:digit:]]*\).*/\1/")} fi +# Disable image policy verification for local development +# In CI, this is set via the test configuration (see https://github.com/openshift/installer/pull/10379) +if [ "${OPENSHIFT_CI}" != "true" ] && [ "${OPENSHIFT_RELEASE_TYPE}" = "nightly" ]; then + export OPENSHIFT_INSTALL_EXPERIMENTAL_DISABLE_IMAGE_POLICY="true" +fi + export OPENSHIFT_RELEASE_TAG=$(echo $OPENSHIFT_RELEASE_IMAGE | sed -E 's/[[:alnum:]\/.-]*(release|okd).*://') # Use "ipmi" for 4.3 as it didn't support redfish, for other versions