Skip to content

Commit

Permalink
Use hardcoded oc download uri for windows (okd bundle)
Browse files Browse the repository at this point in the history
As of now oc client for windows are not release as part of okd-scos
project so it fails but this is mostly the issue in the release pipeline
which need to be fixed. Until now we are hardcoded oc dowload binary
from https://github.com/okd-project/okd release.

- okd-project/okd-scos#17
  • Loading branch information
praveenkumar committed Jan 24, 2024
1 parent a248cf7 commit 7c1a8b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion snc-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ function download_oc() {
fi
if [ "${SNC_GENERATE_WINDOWS_BUNDLE}" != "0" ]; then
mkdir -p openshift-clients/windows
curl -L "${MIRROR}/${OPENSHIFT_RELEASE_VERSION}/openshift-client-windows-${OPENSHIFT_RELEASE_VERSION}.zip" > openshift-clients/windows/oc.zip
if [ "${BUNDLE_TYPE}" == "okd" ]; then
# hardcode download url for oc client in windows until it is fixed on scos side
curl -L https://github.com/okd-project/okd/releases/download/4.14.0-0.okd-2024-01-06-084517/openshift-client-windows-4.14.0-0.okd-2024-01-06-084517.zip > openshift-clients/windows/oc.zip
else
curl -L "${MIRROR}/${OPENSHIFT_RELEASE_VERSION}/openshift-client-windows-${OPENSHIFT_RELEASE_VERSION}.zip" > openshift-clients/windows/oc.zip
fi
${UNZIP} -o -d openshift-clients/windows/ openshift-clients/windows/oc.zip
fi
}
Expand Down

0 comments on commit 7c1a8b1

Please sign in to comment.