Skip to content

Commit 40dd2c0

Browse files
authored
Merge pull request #3308 from gman0/fix-dockerfile-kubectl
🐛 Dockerfile: fix constructing URL for kubectl
2 parents c14535a + 12d0a90 commit 40dd2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ COPY cli/go.sum cli/go.sum
3535
USER 0
3636

3737
# Install kubectl.
38-
RUN wget "https://dl.k8s.io/release/$(go list -m -json k8s.io/kubernetes | jq -r .Version)/bin/linux/$(uname -m | sed 's/aarch.*/arm64/;s/armv8.*/arm64/;s/x86_64/amd64/')/kubectl" -O bin/kubectl && chmod +x bin/kubectl
38+
RUN wget "https://dl.k8s.io/release/$(go list -m -json k8s.io/kubernetes | jq -r .Version | sed 's/^v0/v1/')/bin/linux/$(uname -m | sed 's/aarch.*/arm64/;s/armv8.*/arm64/;s/x86_64/amd64/')/kubectl" -O bin/kubectl && chmod +x bin/kubectl
3939

4040
# Cache deps before building and copying source so that we don't need to re-download as much
4141
# and so that source changes don't invalidate our downloaded layer

0 commit comments

Comments
 (0)