From 1553ab9fbae3414638124609738bf5e0c4b88d74 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Fri, 24 May 2019 09:28:30 +0200 Subject: [PATCH] Install kustomize as a dependency Change-Id: Ie06ca0c4e9140bec116056ab3cac955768c6061b --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.16.6