Skip to content

Commit

Permalink
chore: Bring back kubectl to test-tools-image (#5369)
Browse files Browse the repository at this point in the history
Signed-off-by: jannfis <[email protected]>
  • Loading branch information
jannfis authored Feb 2, 2021
1 parent baa0f2e commit f7c2b88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hack/installers/install-kubectl-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -eux -o pipefail

. $(dirname $0)/../tool-versions.sh

# NOTE: keep the version synced with https://storage.googleapis.com/kubernetes-release/release/stable.txt
[ -e $DOWNLOADS/kubectl ] || curl -sLf --retry 3 -o $DOWNLOADS/kubectl https://storage.googleapis.com/kubernetes-release/release/v${kubectl_version}/bin/linux/$ARCHITECTURE/kubectl
cp $DOWNLOADS/kubectl $BIN/
chmod +x $BIN/kubectl
1 change: 1 addition & 0 deletions test/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN ./install.sh dep-linux && \
./install.sh ksonnet-linux && \
./install.sh helm2-linux && \
./install.sh helm-linux && \
./install.sh kubectl-linux && \
./install.sh kustomize-linux && \
./install.sh codegen-tools && \
./install.sh codegen-go-tools && \
Expand Down

0 comments on commit f7c2b88

Please sign in to comment.