From ed6217bf441a6dfbd54ea354b2ef9a9ded60b429 Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Wed, 14 May 2025 12:09:42 +0100 Subject: [PATCH] fix: update kubectl fetch URL to official dl.k8s.io endpoint To allow download upper versions Signed-off-by: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> --- tools/scripts/fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/fetch b/tools/scripts/fetch index 1a4ab3af760..abc19dd43e9 100755 --- a/tools/scripts/fetch +++ b/tools/scripts/fetch @@ -28,7 +28,7 @@ fetch() { ;; "kubectl") ver_cmd="${DEST}/kubectl version 2>/dev/null | grep Client | cut -d' ' -f5 | sed 's/\w\+:\"v\(.*\)\",/\1/'" - fetch_cmd="(curl -sSfLo '${DEST}/kubectl' 'https://storage.googleapis.com/kubernetes-release/release/v${ver}/bin/${os}/${arch}/kubectl' && chmod +x ${DEST}/kubectl)" + fetch_cmd="(curl -sSfLo '${DEST}/kubectl' 'https://dl.k8s.io/release/v${ver}/bin/${os}/${arch}/kubectl' && chmod +x ${DEST}/kubectl)" ;; "goreleaser") ver_cmd="${DEST}/goreleaser --version 2>/dev/null | grep version | cut -d' ' -f3"