[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Add istioctl to build submodule for local-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeweber committed Aug 21, 2020
1 parent ee92f43 commit 797f3fd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions makelib/k8s_tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
# ====================================================================================
# Options

# the version of istio to use
ISTIO_VERSION ?= 1.6.8
ISTIO := $(TOOLS_HOST_DIR)/istioctl-$(ISTIO_VERSION)
ISTIOOS := $(HOSTOS)
ISTIO_DOWNLOAD_TUPLE := $(HOSTOS)-$(HOSTARCH)
ifeq ($(HOSTOS),darwin)
ISTIO_DOWNLOAD_TUPLE := osx
endif

# the version of kind to use
KIND_VERSION ?= v0.7.0
KIND := $(TOOLS_HOST_DIR)/kind-$(KIND_VERSION)
Expand Down Expand Up @@ -50,6 +59,15 @@ build.vars: k8s_tools.buildvars
# ====================================================================================
# tools

# istio download and install
$(ISTIO):
@$(INFO) installing istio $(ISTIO_VERSION)
@mkdir -p $(TOOLS_HOST_DIR)/tmp-istio || $(FAIL)
@curl --progress-bar -fsSL https://github.com/istio/istio/releases/download/$(ISTIO_VERSION)/istio-$(ISTIO_VERSION)-$(ISTIO_DOWNLOAD_TUPLE).tar.gz | tar -xz -C $(TOOLS_HOST_DIR)/tmp-istio || $(FAIL)
@mv $(TOOLS_HOST_DIR)/tmp-istio/istio-$(ISTIO_VERSION)/bin/istioctl $(ISTIO) || $(FAIL)
@rm -fr $(TOOLS_HOST_DIR)/tmp-istio || $(FAIL)
@$(OK) $(ISTIO) installing istio $(ISTIO_VERSION)

# kind download and install
$(KIND):
@$(INFO) installing kind $(KIND_VERSION)
Expand Down

0 comments on commit 797f3fd

Please sign in to comment.