Skip to content

Commit f0b1604

Browse files
committed
allow specifying the installer url
Add a new env. var. OPENSHIFT_INSTALLER_URL Use this to specify the URL of the installer. For example, if you wanted to use the latest 4.4 candidate installer (as of today), then use something like ``` OPENSHIFT_INSTALLER_URL="https://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/4.4.0-0.nightly-2019-11-19-060809/openshift-install-linux-4.4.0-0.nightly-2019-11-19-060809.tar.gz" hack/get-cluster-run-tests.sh ```
1 parent 32bb173 commit f0b1604

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/deploy-openshift-cluster.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ fi
3939

4040
if [ -n "${OPENSHIFT_INSTALLER:-}" -a -x "${OPENSHIFT_INSTALLER:-}" ] ; then
4141
INSTALLER=$OPENSHIFT_INSTALLER
42+
elif [ -n "${OPENSHIFT_INSTALLER_URL:-}" ] ; then
43+
INSTALLER=$installdir/openshift-install
44+
pushd $WORKDIR > /dev/null
45+
curl -s -L -o openshift-installer.tar.gz "$OPENSHIFT_INSTALLER_URL"
46+
tar xfz openshift-installer.tar.gz
47+
mv openshift-install $INSTALLER
48+
popd > /dev/null
4249
elif [ -n "${OPENSHIFT_INSTALL_VERSION:-}" ] ; then
4350
# download and use specific version
4451
INSTALLER=$installdir/openshift-install

0 commit comments

Comments
 (0)