Skip to content

Commit 5688183

Browse files
authored
Fixing arch selection for kubectl (#810)
1 parent cc34f1d commit 5688183

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ARG PRODUCT
66
ARG KUBECTL_VERSION
77
ARG RELEASE
88
ARG JQ_VERSION
9+
ARG TARGETARCH
910

1011
LABEL name="Stackable Tools" \
1112
maintainer="[email protected]" \
@@ -33,7 +34,7 @@ WORKDIR /stackable/bin
3334
ENV PATH=/stackable/bin:$PATH
3435

3536
# Get latest stable version from curl -L -s https://dl.k8s.io/release/stable.txt
36-
RUN curl -L https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl \
37+
RUN curl -L https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl \
3738
-o /stackable/bin/kubectl && chmod +x /stackable/bin/kubectl
3839

3940
RUN curl -L https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 \

0 commit comments

Comments
 (0)