Skip to content

Commit

Permalink
tests/centosci: Update kubectl download url
Browse files Browse the repository at this point in the history
These days official documentation[1] suggetes a different url than
https://storage.googleapis.com to fetch kubectl binary.

[1] https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

Signed-off-by: Anoop C S <[email protected]>
  • Loading branch information
anoopcs9 authored and mergify[bot] committed Sep 19, 2024
1 parent 79d1070 commit 0baf36a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/centosci/sink-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ install_binaries() {
install minikube /usr/local/sbin/minikube

# Download and install kubectl
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/"${KUBE_VERSION}"/bin/linux/"${MINIKUBE_ARCH}"/kubectl
curl -Lo kubectl https://dl.k8s.io/release/"${KUBE_VERSION}"/bin/linux/"${MINIKUBE_ARCH}"/kubectl
install kubectl /usr/local/sbin/kubectl
}

Expand Down Expand Up @@ -293,7 +293,7 @@ dnf -y install go

if [[ "${KUBE_VERSION}" == "latest" ]]; then
# update the version string from latest with the real version
KUBE_VERSION=$(curl -L https://storage.googleapis.com/kubernetes-release/release/stable.txt 2> /dev/null)
KUBE_VERSION=$(curl -L https://dl.k8s.io/release/stable.txt 2> /dev/null)
else
KUBE_VERSION=$(curl -L https://api.github.com/repos/kubernetes/kubernetes/releases | \
jq -r '.[].tag_name' | grep "${KUBE_VERSION}" | \
Expand Down

0 comments on commit 0baf36a

Please sign in to comment.