From 6083e306a6ea4f2c53cb127a72f66781b66b573d Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Thu, 11 May 2023 14:34:50 +0000 Subject: [PATCH] Use dl.k8s.io instead of hardcoded GCS URIs The `storage.googleapis.com/kubernetes-release` URL is a hard coded path to a GCS bucket location. To allow redirecting and spreading the load across multiple hosting locations, the `dl.k8s.io` URL has been introduced. Signed-off-by: Sean McGinnis --- hack/ensure-kubectl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/ensure-kubectl.sh b/hack/ensure-kubectl.sh index 75690975e..be5c12592 100755 --- a/hack/ensure-kubectl.sh +++ b/hack/ensure-kubectl.sh @@ -31,7 +31,7 @@ verify_kubectl_version() { mkdir -p "${GOPATH_BIN}" fi echo 'kubectl not found, installing' - curl -sLo "${GOPATH_BIN}/kubectl" https://storage.googleapis.com/kubernetes-release/release/${MINIMUM_KUBECTL_VERSION}/bin/linux/amd64/kubectl + curl -sLo "${GOPATH_BIN}/kubectl" https://dl.k8s.io/release/${MINIMUM_KUBECTL_VERSION}/bin/linux/amd64/kubectl chmod +x "${GOPATH_BIN}/kubectl" else echo "Missing required binary in path: kubectl" @@ -51,4 +51,4 @@ EOF fi } -verify_kubectl_version \ No newline at end of file +verify_kubectl_version