Skip to content

Commit

Permalink
Get the oc tarball for windows using payload
Browse files Browse the repository at this point in the history
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.

- okd-project/okd-scos#17
  • Loading branch information
praveenkumar committed Sep 30, 2024
1 parent e136a63 commit 2d4ba1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snc-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d4ba1e

Please sign in to comment.