Skip to content

Commit d0fa8e5

Browse files
authored
Merge pull request #564 from stuggi/golang_1.21
bump to golang 1.21 and k8s to 1.29
2 parents c385c17 + 01d4993 commit d0fa8e5

File tree

22 files changed

+1067
-445
lines changed

22 files changed

+1067
-445
lines changed

.github/workflows/golangci-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Install Go
1111
uses: actions/setup-go@v2
1212
with:
13-
go-version: 1.20.x
13+
go-version: 1.21.x
1414
- name: Checkout project code
1515
uses: actions/checkout@v2
1616
- name: Run govet.sh

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
pass_filenames: false
2222

2323
- repo: https://github.com/pre-commit/pre-commit-hooks
24-
rev: v4.3.0
24+
rev: v4.4.0
2525
hooks:
2626
- id: check-added-large-files
2727
- id: fix-byte-order-marker

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ GINKGO ?= $(LOCALBIN)/ginkgo
1919

2020
## Tool Versions
2121
CONTROLLER_TOOLS_VERSION ?= v0.11.1
22+
GOTOOLCHAIN_VERSION ?= go1.21.0
2223

2324
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
24-
ENVTEST_K8S_VERSION = 1.28
25+
ENVTEST_K8S_VERSION = 1.29
2526

2627
# Number of CPUs to be allocacted for testing
2728
PROCS?=$(shell expr $(shell nproc --ignore 2) / 2)
@@ -133,7 +134,7 @@ golint: get-ci-tools ## Run go lint via ci-tools script against code
133134

134135
.PHONY: gowork
135136
gowork: ## Initiate go work
136-
test -f go.work || go work init
137+
test -f go.work || GOTOOLCHAIN=$(GOTOOLCHAIN_VERSION) go work init
137138
go work use -r modules
138139
go work sync
139140

modules/ansible/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openstack-k8s-operators/lib-common/modules/ansible
22

3-
go 1.20
3+
go 1.21
44

55
require gopkg.in/yaml.v3 v3.0.1
66

modules/certmanager/certificate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
"github.com/openstack-k8s-operators/lib-common/modules/common/secret"
3030
"github.com/openstack-k8s-operators/lib-common/modules/common/service"
3131
"github.com/openstack-k8s-operators/lib-common/modules/common/util"
32+
3233
"golang.org/x/exp/maps"
3334
ctrl "sigs.k8s.io/controller-runtime"
3435
"sigs.k8s.io/controller-runtime/pkg/client"

modules/certmanager/go.mod

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openstack-k8s-operators/lib-common/modules/certmanager
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/cert-manager/cert-manager v1.11.5
@@ -11,21 +11,21 @@ require (
1111
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240122120141-2eff3281aef1
1212
go.uber.org/zap v1.27.0
1313
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
14-
k8s.io/api v0.28.14
15-
k8s.io/apimachinery v0.28.14
16-
k8s.io/client-go v0.28.14
14+
k8s.io/api v0.29.9
15+
k8s.io/apimachinery v0.29.9
16+
k8s.io/client-go v0.29.9
1717
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
18-
sigs.k8s.io/controller-runtime v0.16.6
18+
sigs.k8s.io/controller-runtime v0.17.6
1919
)
2020

2121
require (
2222
github.com/beorn7/perks v1.0.1 // indirect
2323
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2424
github.com/davecgh/go-spew v1.1.1 // indirect
2525
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
26-
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
27-
github.com/fsnotify/fsnotify v1.6.0 // indirect
28-
github.com/go-logr/zapr v1.2.4 // indirect
26+
github.com/evanphx/json-patch/v5 v5.8.0 // indirect
27+
github.com/fsnotify/fsnotify v1.7.0 // indirect
28+
github.com/go-logr/zapr v1.3.0 // indirect
2929
github.com/go-openapi/jsonpointer v0.19.6 // indirect
3030
github.com/go-openapi/jsonreference v0.20.2 // indirect
3131
github.com/go-openapi/swag v0.22.3 // indirect
@@ -42,20 +42,20 @@ require (
4242
github.com/json-iterator/go v1.1.12 // indirect
4343
github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.4.0 // indirect
4444
github.com/mailru/easyjson v0.7.7 // indirect
45-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
45+
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
4646
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4747
github.com/modern-go/reflect2 v1.0.2 // indirect
4848
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4949
github.com/openshift/api v3.9.0+incompatible // indirect
5050
github.com/pkg/errors v0.9.1 // indirect
51-
github.com/prometheus/client_golang v1.16.0 // indirect
52-
github.com/prometheus/client_model v0.4.0 // indirect
53-
github.com/prometheus/common v0.44.0 // indirect
54-
github.com/prometheus/procfs v0.10.1 // indirect
51+
github.com/prometheus/client_golang v1.18.0 // indirect
52+
github.com/prometheus/client_model v0.5.0 // indirect
53+
github.com/prometheus/common v0.45.0 // indirect
54+
github.com/prometheus/procfs v0.12.0 // indirect
5555
github.com/spf13/pflag v1.0.5 // indirect
5656
go.uber.org/multierr v1.11.0 // indirect
5757
golang.org/x/net v0.28.0 // indirect
58-
golang.org/x/oauth2 v0.8.0 // indirect
58+
golang.org/x/oauth2 v0.12.0 // indirect
5959
golang.org/x/sys v0.23.0 // indirect
6060
golang.org/x/term v0.23.0 // indirect
6161
golang.org/x/text v0.17.0 // indirect
@@ -67,10 +67,10 @@ require (
6767
gopkg.in/inf.v0 v0.9.1 // indirect
6868
gopkg.in/yaml.v2 v2.4.0 // indirect
6969
gopkg.in/yaml.v3 v3.0.1 // indirect
70-
k8s.io/apiextensions-apiserver v0.28.14 // indirect
71-
k8s.io/component-base v0.28.14 // indirect
70+
k8s.io/apiextensions-apiserver v0.29.2 // indirect
71+
k8s.io/component-base v0.29.2 // indirect
7272
k8s.io/klog/v2 v2.110.1 // indirect
73-
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
73+
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
7474
sigs.k8s.io/gateway-api v0.6.0 // indirect
7575
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
7676
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
@@ -83,6 +83,6 @@ replace github.com/openstack-k8s-operators/lib-common/modules/test => ../test
8383

8484
replace github.com/openstack-k8s-operators/lib-common/modules/openstack => ../openstack
8585

86-
// mschuppert: map to latest commit from release-4.13 tag
86+
// mschuppert: map to latest commit from release-4.16 tag
8787
// must consistent within modules and service operators
88-
replace github.com/openshift/api => github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7
88+
replace github.com/openshift/api => github.com/openshift/api v0.0.0-20240830023148-b7d0481c9094

0 commit comments

Comments
 (0)