@@ -56,7 +56,7 @@ OPERATOR_SDK_VERSION ?= v1.31.0
5656DEFAULT_IMG ?= quay.io/openstack-k8s-operators/openstack-baremetal-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
6060
6161# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
6262ifeq (,$(shell go env GOBIN) )
@@ -86,7 +86,7 @@ SHELL = /usr/bin/env bash -o pipefail
8686# Extra vars which will be passed to the Docker-build
8787DOCKER_BUILD_ARGS ?=
8888
89- GOTOOLCHAIN_VERSION ?= go1.21 .0
89+ GOTOOLCHAIN_VERSION ?= go1.24 .0
9090
9191.PHONY : all
9292all : build
@@ -219,7 +219,7 @@ GINKGO ?= $(LOCALBIN)/ginkgo
219219
220220# # Tool Versions
221221KUSTOMIZE_VERSION ?= v3.8.7
222- CONTROLLER_TOOLS_VERSION ?= v0.14 .0
222+ CONTROLLER_TOOLS_VERSION ?= v0.18 .0
223223
224224KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
225225.PHONY : kustomize
@@ -240,7 +240,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
240240.PHONY : envtest
241241envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
242242$(ENVTEST ) : $(LOCALBIN )
243- test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@c7e1dc9b
243+ test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
244244
245245.PHONY : operator-sdk
246246OPERATOR_SDK ?= $(LOCALBIN ) /operator-sdk
@@ -347,9 +347,10 @@ govet: get-ci-tools
347347# Run go test against code
348348gotest : test
349349
350+ GOLANGCI_LINT_VERSION ?= v2.4.0
350351.PHONY : golangci-lint
351352golangci-lint :
352- test -s $(LOCALBIN ) /golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
353+ test -s $(LOCALBIN ) /golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $( GOLANGCI_LINT_VERSION )
353354 $(LOCALBIN ) /golangci-lint run --fix
354355
355356.PHONY : vulncheck
0 commit comments