From: Yolanda Robla Date: Fri, 24 May 2019 07:28:30 +0000 (+0200) Subject: Install kustomize as a dependency X-Git-Tag: akraino_r1~13 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F820%2F1;p=kni%2Finstaller.git Install kustomize as a dependency Change-Id: Ie06ca0c4e9140bec116056ab3cac955768c6061b --- diff --git a/Makefile b/Makefile index c75ffa7..accfec9 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ GONAME="kni-edge-installer" BUILDDIR = $(shell pwd)/build INSTALLER_GIT_REPO = github.com/openshift/installer RHCOS_VERSION = "maipo" +export PATH:=${HOME}/go/bin:${PATH} ifndef INSTALLER_PATH override INSTALLER_PATH = https://github.com/openshift/installer/releases/download/v0.16.1/openshift-install-linux-amd64 @@ -42,7 +43,11 @@ clean: @echo "Destroying previous cluster" @./bin/$(GONAME) clean --build_path $(BUILDDIR) -deploy: +dependencies: + @echo "Installing dependencies" + @GOPATH=$(GOPATH) GOBIN=$(GOBIN) go get sigs.k8s.io/kustomize + +deploy: dependencies @echo "Launching cluster deployment bin/$(GONAME)" @./bin/$(GONAME) generate --installer_path $(INSTALLER_PATH) --build_path $(BUILDDIR) --base_repository $(BASE_REPO) --base_path $(BASE_PATH) --secrets_repository $(CREDENTIALS) --site_repository $(SITE_REPO) --settings_path $(SETTINGS_PATH) --master_memory_mb $(MASTER_MEMORY_MB) --ssh_key_path $(SSH_KEY_PATH)