Skip to content

Commit

Permalink
chore: update location from where kubectl is downloaded from (#1257)
Browse files Browse the repository at this point in the history
Seems like the location changed around 1.31.0. The new location also
includes the current patch release.
  • Loading branch information
zerok authored Dec 2, 2024
1 parent b9db0ce commit c18e134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c18e134

Please sign in to comment.