Skip to content

Commit

Permalink
Use dl.k8s.io instead of hardcoded GCS URIs (#824)
Browse files Browse the repository at this point in the history
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 <stmcg@amazon.com>
  • Loading branch information
stmcginnis authored May 11, 2023
1 parent fb71ab6 commit 4469bee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/ensure-kubectl-installed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install_kubectl_if_needed() {
local goos goarch kubectl_url
goos="$(go env GOOS)"
goarch="$(go env GOARCH)"
kubectl_url="https://storage.googleapis.com/kubernetes-release/release/${kubectl_version}/bin/${goos}/${goarch}/kubectl"
kubectl_url="https://dl.k8s.io/release/${kubectl_version}/bin/${goos}/${goarch}/kubectl"

echo >&2 "kubectl not detected in environment, downloading ${kubectl_url}"
mkdir -p "${bin_dir}"
Expand Down
2 changes: 1 addition & 1 deletion hack/sandboxed.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN apt-get update -qqy # retain the apt cache
RUN apt-get install -qqy git curl wget

ARG KUBECTL_VERSION=v1.14.2
RUN curl -fsSLo /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
RUN curl -fsSLo /usr/bin/kubectl https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
chmod +x /usr/bin/kubectl

# initialize index ahead of time
Expand Down

0 comments on commit 4469bee

Please sign in to comment.