@@ -54,7 +54,7 @@ OPERATOR_SDK_VERSION ?= v1.31.0
5454DEFAULT_IMG ?= quay.io/openstack-k8s-operators/ovn-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) )
@@ -71,7 +71,7 @@ SHELL = /usr/bin/env bash -o pipefail
7171# Extra vars which will be passed to the Docker-build
7272DOCKER_BUILD_ARGS ?=
7373
74- GOTOOLCHAIN_VERSION ?= go1.21 .0
74+ GOTOOLCHAIN_VERSION ?= go1.24 .0
7575.PHONY : all
7676all : build
7777
@@ -116,9 +116,10 @@ tidy: ## Run go mod tidy on every mod file in the repo
116116 go mod tidy
117117 cd ./api && go mod tidy
118118
119+ GOLANGCI_LINT_VERSION ?= v2.4.0
119120.PHONY : golangci-lint
120121golangci-lint :
121- test -s $(LOCALBIN ) /golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
122+ test -s $(LOCALBIN ) /golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $( GOLANGCI_LINT_VERSION )
122123 $(LOCALBIN ) /golangci-lint run --fix
123124
124125PROCS? =$(shell expr $(shell nproc --ignore 2) / 2)
@@ -207,7 +208,7 @@ GINKGO ?= $(LOCALBIN)/ginkgo
207208
208209# # Tool Versions
209210KUSTOMIZE_VERSION ?= v3.8.7
210- CONTROLLER_TOOLS_VERSION ?= v0.14 .0
211+ CONTROLLER_TOOLS_VERSION ?= v0.18 .0
211212
212213KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
213214.PHONY : kustomize
@@ -229,7 +230,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
229230envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
230231$(ENVTEST ) : $(LOCALBIN )
231232 # TODO: revisit pinned version once https://github.com/kubernetes-sigs/controller-runtime/issues/2720 is fixed
232- GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@c7e1dc9
233+ GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
233234
234235.PHONY : ginkgo
235236ginkgo : $(GINKGO ) # # Download ginkgo locally if necessary.
0 commit comments