Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OKD] Get the oc tarball for windows using payload #972

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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