Skip to content

Commit 969061a

Browse files
committed
kubectl: fix arm64 platform
Signed-off-by: Pete Wall <pete.wall@grafana.com>
1 parent 67db295 commit 969061a

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

tools/kubectl-image/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
## Unreleased
4+
5+
## 0.1.1
6+
7+
* Fixed ARM64 compatibility. (@petewall)
8+
9+
## 0.1.0
10+
11+
* First release of the Kubectl image.

tools/kubectl-image/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ LABEL org.opencontainers.image.licenses=Apache-2.0
77
RUN apk add --no-cache bash curl gettext jq ca-certificates
88

99
# Download kubectl at various versions
10+
ARG TARGETARCH
1011
ARG KUBECTL_VERSIONS="1.29 1.30 1.31 1.32 1.33"
1112
RUN set -eux; \
1213
for v in $KUBECTL_VERSIONS; do \
13-
curl -sSL -o "/usr/bin/kubectl-$v" "https://dl.k8s.io/release/$(curl -L -s "https://dl.k8s.io/release/stable-${v}.txt")/bin/linux/amd64/kubectl" && \
14+
curl -sSL -o "/usr/bin/kubectl-$v" "https://dl.k8s.io/release/$(curl -L -s "https://dl.k8s.io/release/stable-${v}.txt")/bin/linux/${TARGETARCH}/kubectl" && \
1415
chmod +x "/usr/bin/kubectl-$v"; \
1516
done; \
1617
ln -s /usr/bin/kubectl-1.33 /usr/bin/kubectl

tools/kubectl-image/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.1.1

0 commit comments

Comments
 (0)