diff --git a/Makefile b/Makefile index c101edb..548c401 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ OPERATOR_SDK_VERSION ?= v1.39.1 # Image URL to use all building/pushing image targets IMG ?= controller:latest # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. -ENVTEST_K8S_VERSION = 1.33.0 +ENVTEST_K8S_VERSION = 1.34.0 # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) @@ -110,8 +110,14 @@ fmt: ## Run go fmt against code. vet: ## Run go vet against code. go vet ./... +.PHONY: download-test-crds +download-test-crds: ## Download external CRD modules required by envtest + go mod download github.com/metal3-io/cluster-api-provider-metal3@v1.9.3 + go mod download github.com/metal3-io/baremetal-operator@v0.9.1 + go mod download github.com/NVIDIA/gpu-operator@v1.11.1 + .PHONY: test -test: manifests generate fmt vet envtest ## Run tests. +test: manifests generate fmt vet envtest download-test-crds ## Run tests. KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $$(go list ./... | grep -v /e2e) -coverprofile cover.out # Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.