Skip to content

Commit

Permalink
makefile, test/e2e: parametize KUBECONFIG
Browse files Browse the repository at this point in the history
In order to allow flexibility in the location of the kubeconfig file,
updating the test/e2e target.

Signed-off-by: Ram Lavi <ralavi@redhat.com>
  • Loading branch information
RamLavi committed Nov 19, 2023
1 parent 105172b commit d0ae21d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ GO_IMAGE_TAG := 1.19.4-bullseye

LINTER_IMAGE_NAME := docker.io/golangci/golangci-lint
LINTER_IMAGE_TAG := v1.50.1
KUBECONFIG ?= $(HOME)/.kube/config

PROJECT_WORKING_DIR := /go/src/github.com/kiagnose/kubevirt-realtime-checkup

Expand Down Expand Up @@ -67,8 +68,9 @@ e2e-test:
$(CONTAINER_ENGINE) run --rm \
-v $(PWD):$(PROJECT_WORKING_DIR):Z \
-v $(PWD)/_go-cache:/root/.cache/go-build:Z \
-v $(HOME)/.kube:/root/.kube:Z \
-v $(shell dirname $(KUBECONFIG)):/root/.kube:Z,ro \
--workdir $(PROJECT_WORKING_DIR) \
-e KUBECONFIG=/root/.kube/$(shell basename $(KUBECONFIG)) \
-e TEST_NAMESPACE=$(TEST_NAMESPACE) \
-e TEST_CHECKUP_IMAGE=$(TEST_CHECKUP_IMAGE) \
-e VM_UNDER_TEST_CONTAINER_DISK_IMAGE=$(VM_UNDER_TEST_CONTAINER_DISK_IMAGE) \
Expand Down

0 comments on commit d0ae21d

Please sign in to comment.