From 7c1a8b1cb08179d228753b901f4920ef2e9b0503 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Tue, 23 Jan 2024 17:44:31 +0530 Subject: [PATCH] Use hardcoded oc download uri for windows (okd bundle) 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. - https://github.com/okd-project/okd-scos/issues/17 --- snc-library.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/snc-library.sh b/snc-library.sh index 49b9452f..12288080 100755 --- a/snc-library.sh +++ b/snc-library.sh @@ -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 }