diff --git a/Makefile b/Makefile index 15b10f7a7..56814fca4 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ IMAGE_TAG_NAME := $(VERSION) IMAGE_REPO := $(IMAGE_REGISTRY)/$(IMAGE_NAME) IMAGE_TAG := $(IMAGE_REPO):$(IMAGE_TAG_NAME) K8S_NAMESPACE := kube-system +KUBECONFIG := yaml_templates := $(wildcard *.yaml.template) yaml_instances := $(patsubst %.yaml.template,%.yaml,$(yaml_templates)) @@ -43,5 +44,9 @@ mock: test: go test ./cmd/... ./pkg/... +e2e-test: + dep ensure -v + go test -v ./test/e2e/ -args -nfd.repo=$(IMAGE_REPO) -nfd.tag=$(IMAGE_TAG_NAME) -kubeconfig=$(KUBECONFIG) + push: $(IMAGE_PUSH_CMD) $(IMAGE_TAG) diff --git a/README.md b/README.md index 93ac38597..653bebfdd 100644 --- a/README.md +++ b/README.md @@ -622,6 +622,7 @@ name of the resulting container image. | IMAGE_REPO | Container image repository to use | <IMAGE_REGISTRY>/<IMAGE_NAME> | IMAGE_TAG | Full image:tag to tag the image with | <IMAGE_REPO>/<IMAGE_NAME> | K8S_NAMESPACE | nfd-master and nfd-worker namespace | kube-system +| KUBECONFIG | Kubeconfig for running e2e-tests | *empty* For example, to use a custom registry: ```