File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11build_root_image :
22 name : tools
33 namespace : openstack-k8s-operators
4- tag : ci-build-root-golang-1.21 -sdk-1.31
4+ tag : ci-build-root-golang-1.24 -sdk-1.31
Original file line number Diff line number Diff line change 1515 uses : openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/reusable-build-operator.yaml@main
1616 with :
1717 operator_name : nova
18- go_version : 1.21 .x
18+ go_version : 1.24 .x
1919 operator_sdk_version : 1.31.0
2020 secrets :
2121 IMAGENAMESPACE : ${{ secrets.IMAGENAMESPACE }}
Original file line number Diff line number Diff line change 99 with :
1010 operator_name : nova
1111 branch_name : ${{ github.ref_name }}
12+ custom_image : quay.io/openstack-k8s-operators/openstack-k8s-operators-ci-build-tools:golang-1.24-sdk-1.31
1213 secrets :
1314 FORCE_BUMP_PULL_REQUEST_PAT : ${{ secrets.FORCE_BUMP_PULL_REQUEST_PAT }}
Original file line number Diff line number Diff line change 1010 uses : openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/force-bump-branches.yaml@main
1111 with :
1212 operator_name : nova
13+ custom_image : quay.io/openstack-k8s-operators/openstack-k8s-operators-ci-build-tools:golang-1.24-sdk-1.31
1314 secrets :
1415 FORCE_BUMP_PULL_REQUEST_PAT : ${{ secrets.FORCE_BUMP_PULL_REQUEST_PAT }}
Original file line number Diff line number Diff line change 1+ version : 2
2+
13linters :
24 # Enable specific linter
35 # https://golangci-lint.run/usage/linters/#enabled-by-default
46 enable :
57 - errorlint
68 - revive
79 - ginkgolinter
8- - gofmt
910 - govet
1011 - gosec
1112 - errname
1213 - err113
14+
15+ formatters :
16+ enable :
17+ - gofmt
18+
1319run :
1420 timeout : 5m
Original file line number Diff line number Diff line change 8383 args : ['--ignore-words=.codespell.ignore']
8484
8585- repo : https://github.com/golangci/golangci-lint
86- rev : v1.59.1
86+ rev : v2.4.0
8787 hooks :
8888 - id : golangci-lint-full
8989 args : ["-v"]
Original file line number Diff line number Diff line change 1- ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.21
1+ ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.24
22ARG OPERATOR_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:latest
33
44# Build the manager binary
Original file line number Diff line number Diff line change 6969SHELL = /usr/bin/env bash -o pipefail
7070.SHELLFLAGS = -ec
7171
72- GOTOOLCHAIN_VERSION ?= go1.21 .0
72+ GOTOOLCHAIN_VERSION ?= go1.24 .0
7373
7474.PHONY : all
7575all : build
@@ -134,10 +134,11 @@ tidy: ## Run go mod tidy on every mod file in the repo
134134 go mod tidy
135135 cd ./api && go mod tidy
136136
137+ GOLANGCI_LINT_VERSION ?= v2.4.0
137138.PHONY : golangci-lint
138139golangci-lint :
139140 # NOTE this will install golangci-lint in to local bin dir
140- test -s $(LOCALBIN ) /golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
141+ test -s $(LOCALBIN ) /golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $( GOLANGCI_LINT_VERSION )
141142 $(LOCALBIN ) /golangci-lint run --fix
142143
143144PROCS? =$(shell expr $(shell nproc --ignore 2) / 2)
Original file line number Diff line number Diff line change 11module github.com/openstack-k8s-operators/nova-operator/api
22
3- go 1.21
3+ go 1.24
44
55require (
66 github.com/google/go-cmp v0.7.0
Original file line number Diff line number Diff line change 11module github.com/openstack-k8s-operators/nova-operator
22
3- go 1.21
3+ go 1.24
44
55require (
66 github.com/go-logr/logr v1.4.3
You can’t perform that action at this time.
0 commit comments