From 0baf36a8bc54deea96a86809094dbd56c899e0b7 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Mon, 16 Sep 2024 22:58:24 +0530 Subject: [PATCH] tests/centosci: Update kubectl download url 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 --- tests/centosci/sink-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/centosci/sink-common.sh b/tests/centosci/sink-common.sh index 8d118007..ef82a21a 100644 --- a/tests/centosci/sink-common.sh +++ b/tests/centosci/sink-common.sh @@ -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 } @@ -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}" | \