@@ -54,7 +54,7 @@ OPERATOR_SDK_VERSION ?= v1.31.0
5454DEFAULT_IMG ?= quay.io/openstack-k8s-operators/test-operator:latest
5555IMG ?= $(DEFAULT_IMG )
5656# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
57- ENVTEST_K8S_VERSION = 1.29
57+ ENVTEST_K8S_VERSION = 1.31
5858
5959# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
6060ifeq (,$(shell go env GOBIN) )
@@ -112,9 +112,10 @@ tidy: ## Run go mod tidy on every mod file in the repo
112112 go mod tidy
113113 cd ./api && go mod tidy
114114
115+ GOLANGCI_LINT_VERSION ?= v2.4.0
115116.PHONY : golangci-lint
116117golangci-lint :
117- test -s $(LOCALBIN ) /golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
118+ test -s $(LOCALBIN ) /golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $( GOLANGCI_LINT_VERSION )
118119 $(LOCALBIN ) /golangci-lint run --fix
119120
120121PROCS? =$(shell expr $(shell nproc --ignore 2) / 2)
@@ -201,8 +202,8 @@ GINKGO ?= $(LOCALBIN)/ginkgo
201202
202203# # Tool Versions
203204KUSTOMIZE_VERSION ?= v3.8.7
204- CONTROLLER_TOOLS_VERSION ?= v0.14 .0
205- GOTOOLCHAIN_VERSION ?= go1.21 .0
205+ CONTROLLER_TOOLS_VERSION ?= v0.18 .0
206+ GOTOOLCHAIN_VERSION ?= go1.24 .0
206207
207208KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
208209.PHONY : kustomize
@@ -223,7 +224,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
223224.PHONY : envtest
224225envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
225226$(ENVTEST ) : $(LOCALBIN )
226- GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@c7e1dc9b
227+ GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
227228
228229.PHONY : ginkgo
229230ginkgo : $(GINKGO ) # # Download ginkgo locally if necessary.
0 commit comments