From c18e134590d09e331f2cba3467d6399a005f1bc9 Mon Sep 17 00:00:00 2001 From: Horst Gutmann Date: Mon, 2 Dec 2024 11:39:10 +0100 Subject: [PATCH] chore: update location from where kubectl is downloaded from (#1257) Seems like the location changed around 1.31.0. The new location also includes the current patch release. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9bcda2d0e..5fa0db8a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ # download kubectl FROM golang:1.23.3-alpine AS kubectl RUN apk add --no-cache curl -RUN export VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) &&\ +RUN export VERSION=$(curl -s https://cdn.dl.k8s.io/release/stable.txt) &&\ export OS=$(go env GOOS) && \ export ARCH=$(go env GOARCH) &&\ - curl -o /usr/local/bin/kubectl -L https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/${OS}/${ARCH}/kubectl &&\ + curl -o /usr/local/bin/kubectl -L https://cdn.dl.k8s.io/release/${VERSION}/bin/${OS}/${ARCH}/kubectl &&\ chmod +x /usr/local/bin/kubectl # build jsonnet-bundler