Skip to content

Commit 37ad98f

Browse files
committed
NO-JIRA: Set DISABLE_IMAGE_POLICY for local nightly installs
1 parent 2f483b9 commit 37ad98f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

common.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ if [[ -z "$OPENSHIFT_CI" ]]; then
181181
export OPENSHIFT_VERSION=${OPENSHIFT_VERSION:-$(echo $OPENSHIFT_RELEASE_IMAGE | sed "s/.*:\([[:digit:]]\.[[:digit:]]*\).*/\1/")}
182182
fi
183183

184+
# Disable image policy verification for local development
185+
# In CI, this is set via the test configuration (see https://github.com/openshift/installer/pull/10379)
186+
if [ "${OPENSHIFT_CI}" != "true" ] && [ "${OPENSHIFT_RELEASE_TYPE}" = "nightly" ]; then
187+
export OPENSHIFT_INSTALL_EXPERIMENTAL_DISABLE_IMAGE_POLICY="true"
188+
fi
189+
184190
export OPENSHIFT_RELEASE_TAG=$(echo $OPENSHIFT_RELEASE_IMAGE | sed -E 's/[[:alnum:]\/.-]*(release|okd).*://')
185191

186192
# Use "ipmi" for 4.3 as it didn't support redfish, for other versions

0 commit comments

Comments
 (0)