Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#53 from mansikulkarni96/issue-51
Browse files Browse the repository at this point in the history
[hack] Curl based on ARCH AND OS type
  • Loading branch information
k8s-ci-robot authored Apr 13, 2023
2 parents 6e22ea1 + a8def98 commit d78caa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/build_k8s_test_binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ if [ $1 != 0 ]; then
elif [ ! -f "e2e.test" ]; then
# Download the binary directly from Kubernetes release, skip if already exists
E2E_BINARY_VERSION=$(echo $KUBERNETES_VERSION | cut -d. -f 1-4)
curl -L "https://dl.k8s.io/${E2E_BINARY_VERSION}/kubernetes-test-linux-amd64.tar.gz" -o test.tar.gz
ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac)
OS=$(uname | awk '{print tolower($0)}')
curl -L "https://dl.k8s.io/${E2E_BINARY_VERSION}/kubernetes-test-${OS}-${ARCH}.tar.gz" -o test.tar.gz
tar xvzf test.tar.gz --strip-components=3 kubernetes/test/bin/e2e.test
fi

0 comments on commit d78caa7

Please sign in to comment.