Skip to content

Commit

Permalink
updated kn-vsphere binary download
Browse files Browse the repository at this point in the history
Closes: vmware-samples#1165
Signed-off-by: Robert Guske <[email protected]>
  • Loading branch information
Robert Guske committed Feb 18, 2024
1 parent 6eb6e43 commit cf3bda3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/photon-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ mv kn-linux-amd64 /usr/local/bin/kn

echo '> Downloading Kn vSphere CLI'
KNATIVE_VSPHERE_VERSION=$(jq -r < ${VEBA_BOM_FILE} '.["knative-vsphere-cli"].version')
KNATIVE_VSPHERE_NUMERIC_VERSION=$(echo ${KNATIVE_VSPHERE_VERSION} | sed 's/v//g')
curl -L https://github.com/vmware-tanzu/sources-for-knative/releases/download/${KNATIVE_VSPHERE_VERSION}/kn-vsphere_${KNATIVE_VSPHERE_NUMERIC_VERSION}_Linux_x86_64.tar.gz -o /root/kn-vsphere_${KNATIVE_VSPHERE_NUMERIC_VERSION}_Linux_x86_64.tar.gz
tar -zxvf /root/kn-vsphere_${KNATIVE_VSPHERE_NUMERIC_VERSION}_Linux_x86_64.tar.gz -C /root
mv /root/kn-vsphere_${KNATIVE_VSPHERE_NUMERIC_VERSION}_Linux_x86_64/kn-vsphere /usr/local/bin/kn-vsphere
curl -L https://github.com/vmware-tanzu/sources-for-knative/releases/download/${KNATIVE_VSPHERE_VERSION}/kn-vsphere_Linux_x86_64.tar.gz -o /root/kn-vsphere_Linux_x86_64.tar.gz
tar -zxvf /root/kn-vsphere_Linux_x86_64.tar.gz -C /root
mv /root/kn-vsphere_Linux_x86_64/kn-vsphere /usr/local/bin/kn-vsphere
chmod +x /usr/local/bin/kn-vsphere
rm -rf /root/kn-vsphere_${KNATIVE_VSPHERE_NUMERIC_VERSION}_Linux_x86_64*
rm -rf /root/kn-vsphere_Linux_x86_64*

echo '> Downloading YTT CLI'
YTT_VERSION=$(jq -r < ${VEBA_BOM_FILE} '.["ytt-cli"].version')
Expand Down

0 comments on commit cf3bda3

Please sign in to comment.