From 2094c8ec9357b8eafa2e2262614ad4ef07e6400b Mon Sep 17 00:00:00 2001 From: Nestor Acuna-Blanco Date: Tue, 16 Jul 2024 10:33:45 +0200 Subject: [PATCH] fix: enable KUBECONFIG default for functest Signed-off-by: Nestor Acuna-Blanco --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 59abd050..d7dc8d53 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,8 @@ KUSTOMIZE ?= $(LOCALBIN)/kustomize KUSTOMIZE_VERSION ?= v4.5.7 KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" +KUBECONFIG ?= ~/.kube/config + .PHONY:build build: fmt vet go build -o bin/console main.go @@ -56,7 +58,7 @@ test: .PHONY: functest functest: - go test -v -timeout 0 -count 1 ./tests/... + KUBECONFIG=$(KUBECONFIG) go test -v -timeout 0 -count 1 ./tests/... .PHONY: fmt fmt: