From 70f2e4e84db34c25d1d1657928b40e99090ef691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Wed, 31 Aug 2022 11:58:27 +0200 Subject: [PATCH] fix: warning in all makefile targets (#4464) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché Signed-off-by: Charles-Edouard Brétéché --- Makefile | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 42c568fc67..ebd575f58f 100644 --- a/Makefile +++ b/Makefile @@ -22,8 +22,6 @@ KIND_NAME ?= kind GOOS ?= $(shell go env GOOS) GOARCH ?= $(shell go env GOARCH) -export K8S_VERSION - ######### # TOOLS # ######### @@ -396,23 +394,19 @@ code-cov-report: ## Generate code coverage report # Test E2E test-e2e: - $(eval export E2E="ok") - go test ./test/e2e/verifyimages -v - go test ./test/e2e/metrics -v - go test ./test/e2e/mutate -v - go test ./test/e2e/generate -v - $(eval export E2E="") + E2E=ok K8S_VERSION=$(K8S_VERSION) go test ./test/e2e/verifyimages -v + E2E=ok K8S_VERSION=$(K8S_VERSION) go test ./test/e2e/metrics -v + E2E=ok K8S_VERSION=$(K8S_VERSION) go test ./test/e2e/mutate -v + E2E=ok K8S_VERSION=$(K8S_VERSION) go test ./test/e2e/generate -v test-e2e-local: - $(eval export E2E="ok") kubectl apply -f https://raw.githubusercontent.com/kyverno/kyverno/main/config/github/rbac.yaml kubectl port-forward -n kyverno service/kyverno-svc-metrics 8000:8000 & - go test ./test/e2e/verifyimages -v - go test ./test/e2e/metrics -v - go test ./test/e2e/mutate -v - go test ./test/e2e/generate -v + E2E=ok K8S_VERSION=$(K8S_VERSION) go test ./test/e2e/verifyimages -v + E2E=ok K8S_VERSION=$(K8S_VERSION) go test ./test/e2e/metrics -v + E2E=ok K8S_VERSION=$(K8S_VERSION) go test ./test/e2e/mutate -v + E2E=ok K8S_VERSION=$(K8S_VERSION) go test ./test/e2e/generate -v kill $! - $(eval export E2E="") helm-test-values: sed -i -e "s|nameOverride:.*|nameOverride: kyverno|g" charts/kyverno/values.yaml