11# Set the Operator SDK version to use. By default, what is installed on the
22# system is used. This is useful for CI or a project to utilize a specific
33# version of the operator-sdk toolkit.
4- OPERATOR_SDK_VERSION ?= v1.40 .0
4+ OPERATOR_SDK_VERSION ?= v1.42 .0
55
66# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
77ifeq (,$(shell go env GOBIN) )
@@ -100,12 +100,12 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest
100100GOLANGCI_LINT = $(LOCALBIN ) /golangci-lint
101101
102102# # Tool Versions
103- CONTROLLER_TOOLS_VERSION ?= v0.17.2
103+ CONTROLLER_TOOLS_VERSION ?= v0.20.1
104104# ENVTEST_VERSION is the version of controller-runtime release branch to fetch the envtest setup script (i.e. release-0.20)
105105ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-% d.% d", $$2, $$3}')
106106# ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)
107107ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.% d", $$3}')
108- GOLANGCI_LINT_VERSION ?= v2.0.2
108+ GOLANGCI_LINT_VERSION ?= v2.9.0
109109
110110.PHONY : controller-gen
111111controller-gen : $(CONTROLLER_GEN ) # # Download controller-gen locally if necessary.
@@ -128,7 +128,7 @@ $(ENVTEST): $(LOCALBIN)
128128.PHONY : golangci-lint
129129golangci-lint : $(GOLANGCI_LINT ) # # Download golangci-lint locally if necessary.
130130$(GOLANGCI_LINT ) : $(LOCALBIN )
131- $(call go-install-tool,$(GOLANGCI_LINT ) ,github.com/golangci/golangci-lint/cmd/golangci-lint,$(GOLANGCI_LINT_VERSION ) )
131+ $(call go-install-tool,$(GOLANGCI_LINT ) ,github.com/golangci/golangci-lint/v2/ cmd/golangci-lint,$(GOLANGCI_LINT_VERSION ) )
132132
133133# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
134134# $1 - target path with name of binary
0 commit comments