Skip to content

Commit

Permalink
Download e2e test tools for the host OS
Browse files Browse the repository at this point in the history
Signed-off-by: Masayuki Ishii <masa213f@gmail.com>
  • Loading branch information
masa213f committed Feb 3, 2021
1 parent 7105d3f commit 2c85e1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions e2e/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
include ../common.mk

GOOS := $(shell go env GOOS)
GOARCH := $(shell go env GOARCH)

KUBECTL := $(PWD)/bin/kubectl
KIND_VERSION=0.10.0
KUSTOMIZE_VERSION=3.7.0
Expand Down Expand Up @@ -72,12 +75,12 @@ $(KUBECTL_MOCO): $(GO_FILES)

$(KUBECTL):
mkdir -p bin
curl -sfL https://storage.googleapis.com/kubernetes-release/release/v$(KUBERNETES_VERSION)/bin/linux/amd64/kubectl -o $(KUBECTL)
curl -sfL https://storage.googleapis.com/kubernetes-release/release/v$(KUBERNETES_VERSION)/bin/$(GOOS)/$(GOARCH)/kubectl -o $(KUBECTL)
chmod 755 $(KUBECTL)

$(KUSTOMIZE):
mkdir -p bin
curl -sSLf https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v$(KUSTOMIZE_VERSION)/kustomize_v$(KUSTOMIZE_VERSION)_linux_amd64.tar.gz | tar xzf - > kustomize
curl -sSLf https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v$(KUSTOMIZE_VERSION)/kustomize_v$(KUSTOMIZE_VERSION)_$(GOOS)_$(GOARCH).tar.gz | tar xzf - > kustomize
mv kustomize $(KUSTOMIZE)

.PHONY: kind
Expand Down

0 comments on commit 2c85e1b

Please sign in to comment.