Skip to content

Commit 914f90f

Browse files
committed
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
1 parent f220519 commit 914f90f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

snc-library.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ function download_oc() {
4444
if [ "${SNC_GENERATE_WINDOWS_BUNDLE}" != "0" ]; then
4545
mkdir -p openshift-clients/windows
4646
if [ "${BUNDLE_TYPE}" == "okd" ]; then
47-
# hardcode download url for oc client in windows until it is fixed on scos side
48-
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
47+
# Extract oc client for windows until it is fixed on scos side and part of artifacts like mac and Linux
48+
# https://github.com/okd-project/okd-scos/issues/17
49+
${OC} adm release extract --tools --command-os windows --to openshift-clients/windows quay.io/okd/scos-release:${OPENSHIFT_RELEASE_VERSION}
50+
mv openshift-clients/windows/*.zip openshift-clients/windows/oc.zip
4951
else
5052
curl -L "${MIRROR}/${OPENSHIFT_RELEASE_VERSION}/openshift-client-windows-${OPENSHIFT_RELEASE_VERSION}.zip" > openshift-clients/windows/oc.zip
5153
fi

0 commit comments

Comments
 (0)