@@ -62,7 +62,7 @@ OPERATOR_SDK_VERSION ?= v1.31.0
6262DEFAULT_IMG ?= quay.io/openstack-k8s-operators/manila-operator:latest
6363IMG ?= $(DEFAULT_IMG )
6464# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
65- ENVTEST_K8S_VERSION = 1.29
65+ ENVTEST_K8S_VERSION = 1.31
6666
6767GINKGO ?= $(LOCALBIN ) /ginkgo
6868
@@ -239,8 +239,8 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest
239239
240240# # Tool Versions
241241KUSTOMIZE_VERSION ?= v3.8.7
242- CONTROLLER_TOOLS_VERSION ?= v0.14 .0
243- GOTOOLCHAIN_VERSION ?= go1.21 .0
242+ CONTROLLER_TOOLS_VERSION ?= v0.18 .0
243+ GOTOOLCHAIN_VERSION ?= go1.24 .0
244244
245245KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
246246.PHONY : kustomize
@@ -262,7 +262,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
262262.PHONY : envtest
263263envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
264264$(ENVTEST ) : $(LOCALBIN )
265- test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@c7e1dc9b
265+ test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
266266
267267.PHONY : operator-sdk
268268OPERATOR_SDK ?= $(LOCALBIN ) /operator-sdk
@@ -388,9 +388,10 @@ tidy: ## Run go mod tidy on every mod file in the repo
388388 go mod tidy
389389 cd ./api && go mod tidy
390390
391+ GOLANGCI_LINT_VERSION ?= v2.4.0
391392.PHONY : golangci-lint
392393golangci-lint :
393- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
394+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $( GOLANGCI_LINT_VERSION )
394395 $(LOCALBIN ) /golangci-lint run --fix --timeout $(GOLINT_TIMEOUT )
395396
396397# Used for webhook testing
0 commit comments