File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ REGISTRY ?= docker.io/linode
55IMAGE_NAME ?= cluster-api-provider-linode
66CONTROLLER_IMAGE ?= $(REGISTRY ) /$(IMAGE_NAME )
77TAG ?= dev
8- ENVTEST_K8S_VERSION : = $(shell go list -m -f '{{ .Version}}' k8s.io/client-go )
8+ ENVTEST_K8S_VERSION ? = $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1. % d", $$3}' )
99VERSION ?= $(shell git describe --always --tag --dirty=-dev)
1010BUILD_ARGS := --build-arg VERSION=$(VERSION )
1111SHELL = /usr/bin/env bash -o pipefail
@@ -154,7 +154,8 @@ docs:
154154
155155.PHONY : test
156156test : generate fmt vet # # Run tests.
157- KUBEBUILDER_ASSETS=" $( shell setup-envtest use 0.20.4 --bin-dir $( CACHE_BIN) -p path) " go test -race -timeout 60s ` go list ./... | grep -v ./mock$$ ` -coverprofile cover.out.tmp
157+ go env -w GOTOOLCHAIN=go1.25.0+auto
158+ KUBEBUILDER_ASSETS=" $( shell setup-envtest use $( ENVTEST_K8S_VERSION) --bin-dir $( CACHE_BIN) -p path) " go test -race -timeout 60s ` go list ./... | grep -v ./mock$$ ` -coverprofile cover.out.tmp
158159 grep -v " zz_generated.*" cover.out.tmp > cover.out
159160 rm cover.out.tmp
160161
You can’t perform that action at this time.
0 commit comments