Skip to content

Commit c18e134

Browse files
authored
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.
1 parent b9db0ce commit c18e134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# download kubectl
22
FROM golang:1.23.3-alpine AS kubectl
33
RUN apk add --no-cache curl
4-
RUN export VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) &&\
4+
RUN export VERSION=$(curl -s https://cdn.dl.k8s.io/release/stable.txt) &&\
55
export OS=$(go env GOOS) && \
66
export ARCH=$(go env GOARCH) &&\
7-
curl -o /usr/local/bin/kubectl -L https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/${OS}/${ARCH}/kubectl &&\
7+
curl -o /usr/local/bin/kubectl -L https://cdn.dl.k8s.io/release/${VERSION}/bin/${OS}/${ARCH}/kubectl &&\
88
chmod +x /usr/local/bin/kubectl
99

1010
# build jsonnet-bundler

0 commit comments

Comments
 (0)