From 914f90f723290823a4e2dee95cb64d5d97b29c97 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Fri, 27 Sep 2024 17:10:31 +0530 Subject: [PATCH] Get the oc tarball for windows using payload OKD scos release doesn't provide the windows artifacts and till now we were using the old 4.14 one which might not work with latest version of OKD. This PR is going to extract it from the specified release. - https://github.com/okd-project/okd-scos/issues/17 --- snc-library.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/snc-library.sh b/snc-library.sh index 8a3b2f96..9d2a5329 100755 --- a/snc-library.sh +++ b/snc-library.sh @@ -44,8 +44,10 @@ function download_oc() { if [ "${SNC_GENERATE_WINDOWS_BUNDLE}" != "0" ]; then mkdir -p openshift-clients/windows 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 + # Extract oc client for windows until it is fixed on scos side and part of artifacts like mac and Linux + # https://github.com/okd-project/okd-scos/issues/17 + ${OC} adm release extract --tools --command-os windows --to openshift-clients/windows quay.io/okd/scos-release:${OPENSHIFT_RELEASE_VERSION} + mv openshift-clients/windows/*.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