Skip to content

Commit 57775dc

Browse files
Merge pull request #202 from stuggi/golang_1.21
bump to golang 1.21 and k8s to 1.29
2 parents aea8ec8 + 6f7b8da commit 57775dc

File tree

10 files changed

+101
-89
lines changed

10 files changed

+101
-89
lines changed

.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
name: tools
33
namespace: openstack-k8s-operators
4-
tag: ci-build-root-golang-1.20-sdk-1.31
4+
tag: ci-build-root-golang-1.21-sdk-1.31

.github/workflows/build-test-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Install Go
6969
uses: actions/setup-go@v2
7070
with:
71-
go-version: 1.20.x
71+
go-version: 1.21.x
7272

7373
- name: Checkout test-operator repository
7474
uses: actions/checkout@v2

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repos:
5656
entry: bashate --error . --ignore=E006,E040,E011,E020,E012
5757

5858
- repo: https://github.com/golangci/golangci-lint
59-
rev: v1.55.2
59+
rev: v1.59.1
6060
hooks:
6161
- id: golangci-lint-full
6262
args: ["-v"]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.20
2+
ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.21
33
ARG OPERATOR_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:latest
44

55
FROM $GOLANG_BUILDER AS builder

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ OPERATOR_SDK_VERSION ?= v1.31.0
5454
DEFAULT_IMG ?= quay.io/openstack-k8s-operators/test-operator:latest
5555
IMG ?= $(DEFAULT_IMG)
5656
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
57-
ENVTEST_K8S_VERSION = 1.28.0
57+
ENVTEST_K8S_VERSION = 1.29
5858

5959
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
6060
ifeq (,$(shell go env GOBIN))
@@ -199,6 +199,7 @@ GINKGO ?= $(LOCALBIN)/ginkgo
199199
## Tool Versions
200200
KUSTOMIZE_VERSION ?= v3.8.7
201201
CONTROLLER_TOOLS_VERSION ?= v0.11.1
202+
GOTOOLCHAIN_VERSION ?= go1.21.0
202203

203204
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
204205
.PHONY: kustomize
@@ -334,7 +335,7 @@ golint: get-ci-tools
334335

335336
.PHONY: gowork
336337
gowork: ## Generate go.work file to support our multi module repository
337-
test -f go.work || go work init
338+
test -f go.work || GOTOOLCHAIN=$(GOTOOLCHAIN_VERSION) go work init
338339
go work use .
339340
go work use ./api
340341

api/go.mod

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
module github.com/openstack-k8s-operators/test-operator/api
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/google/go-cmp v0.6.0
77
github.com/openstack-k8s-operators/lib-common/modules/common v0.4.1-0.20240916063644-814ac3823abe
8-
k8s.io/api v0.28.14
9-
k8s.io/apimachinery v0.28.14
10-
sigs.k8s.io/controller-runtime v0.16.6
8+
k8s.io/api v0.29.9
9+
k8s.io/apimachinery v0.29.9
10+
sigs.k8s.io/controller-runtime v0.17.6
1111
)
1212

1313
require (
1414
github.com/beorn7/perks v1.0.1 // indirect
1515
github.com/cespare/xxhash/v2 v2.2.0 // indirect
1616
github.com/davecgh/go-spew v1.1.1 // indirect
1717
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
18-
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
19-
github.com/fsnotify/fsnotify v1.6.0 // indirect
18+
github.com/evanphx/json-patch/v5 v5.8.0 // indirect
19+
github.com/fsnotify/fsnotify v1.7.0 // indirect
2020
github.com/go-logr/logr v1.4.2 // indirect
2121
github.com/go-openapi/jsonpointer v0.19.6 // indirect
2222
github.com/go-openapi/jsonreference v0.20.2 // indirect
@@ -31,21 +31,19 @@ require (
3131
github.com/josharian/intern v1.0.0 // indirect
3232
github.com/json-iterator/go v1.1.12 // indirect
3333
github.com/mailru/easyjson v0.7.7 // indirect
34-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
34+
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
3535
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3636
github.com/modern-go/reflect2 v1.0.2 // indirect
3737
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
3838
github.com/pkg/errors v0.9.1 // indirect
39-
github.com/prometheus/client_golang v1.16.0 // indirect
40-
github.com/prometheus/client_model v0.4.0 // indirect
41-
github.com/prometheus/common v0.44.0 // indirect
42-
github.com/prometheus/procfs v0.10.1 // indirect
39+
github.com/prometheus/client_golang v1.18.0 // indirect
40+
github.com/prometheus/client_model v0.5.0 // indirect
41+
github.com/prometheus/common v0.45.0 // indirect
42+
github.com/prometheus/procfs v0.12.0 // indirect
4343
github.com/spf13/pflag v1.0.5 // indirect
44-
github.com/stretchr/testify v1.8.4 // indirect
45-
go.uber.org/goleak v1.3.0 // indirect
4644
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
4745
golang.org/x/net v0.28.0 // indirect
48-
golang.org/x/oauth2 v0.8.0 // indirect
46+
golang.org/x/oauth2 v0.12.0 // indirect
4947
golang.org/x/sys v0.23.0 // indirect
5048
golang.org/x/term v0.23.0 // indirect
5149
golang.org/x/text v0.17.0 // indirect
@@ -56,11 +54,11 @@ require (
5654
gopkg.in/inf.v0 v0.9.1 // indirect
5755
gopkg.in/yaml.v2 v2.4.0 // indirect
5856
gopkg.in/yaml.v3 v3.0.1 // indirect
59-
k8s.io/apiextensions-apiserver v0.28.14 // indirect
60-
k8s.io/client-go v0.28.14 // indirect
61-
k8s.io/component-base v0.28.14 // indirect
57+
k8s.io/apiextensions-apiserver v0.29.2 // indirect
58+
k8s.io/client-go v0.29.2 // indirect
59+
k8s.io/component-base v0.29.2 // indirect
6260
k8s.io/klog/v2 v2.110.1 // indirect
63-
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
61+
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
6462
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
6563
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
6664
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect

0 commit comments

Comments
 (0)