@@ -56,7 +56,7 @@ OPERATOR_SDK_VERSION ?= v1.31.0
5656DEFAULT_IMG ?= quay.io/openstack-k8s-operators/glance-operator:latest
5757IMG ?= $(DEFAULT_IMG )
5858# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
59- ENVTEST_K8S_VERSION = 1.29
59+ ENVTEST_K8S_VERSION = 1.31
6060GINKGO ?= $(LOCALBIN ) /ginkgo
6161
6262# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
@@ -132,9 +132,10 @@ tidy: ## Run go mod tidy on every mod file in the repo
132132 go mod tidy
133133 cd ./api && go mod tidy
134134
135+ GOLANGCI_LINT_VERSION ?= v2.4.0
135136.PHONY : golangci-lint
136137golangci-lint :
137- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
138+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $( GOLANGCI_LINT_VERSION )
138139 $(LOCALBIN ) /golangci-lint run --fix
139140
140141PROCS? =$(shell expr $(shell nproc --ignore 2) / 4)
@@ -226,8 +227,8 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest
226227
227228# # Tool Versions
228229KUSTOMIZE_VERSION ?= v3.8.7
229- CONTROLLER_TOOLS_VERSION ?= v0.14 .0
230- GOTOOLCHAIN_VERSION ?= go1.21 .0
230+ CONTROLLER_TOOLS_VERSION ?= v0.18 .0
231+ GOTOOLCHAIN_VERSION ?= go1.24 .0
231232
232233KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
233234.PHONY : kustomize
@@ -248,7 +249,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
248249.PHONY : envtest
249250envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
250251$(ENVTEST ) : $(LOCALBIN )
251- test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@c7e1dc9b
252+ test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
252253
253254.PHONY : operator-sdk
254255OPERATOR_SDK ?= $(LOCALBIN ) /operator-sdk
0 commit comments