From d7e358df01f345b40d62d7de5b674c47ceb971b5 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Thu, 11 May 2023 14:25:16 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/ensure-kubectl.sh b/hack/ensure-kubectl.sh index a623885e6b..2872bf3202 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"