Skip to content

Commit bcfe7b3

Browse files
authored
Merge pull request #1075 from stuggi/golang_1.21
bump to golang 1.21 and k8s to 1.29
2 parents e054da2 + 4d3b73d commit bcfe7b3

18 files changed

+1699
-310
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-openstack-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/reusable-build-operator.yaml@main
1616
with:
1717
operator_name: openstack
18-
go_version: 1.20.x
18+
go_version: 1.21.x
1919
operator_sdk_version: 1.31.0
2020
bundle_dockerfile: ./bundle.Dockerfile
2121
catalog_extra_bundles_script: ./hack/pin-bundle-images.sh

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Go
2222
uses: actions/setup-go@v3
2323
with:
24-
go-version: 1.20.x
24+
go-version: 1.21.x
2525
- uses: actions/checkout@v4
2626
with:
2727
# this fetches all branches. Needed because we need gh-pages branch for deploy to work

.github/workflows/kustom.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install Go
1717
uses: actions/setup-go@v3
1818
with:
19-
go-version: 1.20.x
19+
go-version: 1.21.x
2020
- uses: actions/checkout@v4
2121
with:
2222
# this fetches all branches. Needed because we need gh-pages branch for deploy to work

.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,4 +1,4 @@
1-
ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.20
1+
ARG GOLANG_BUILDER=registry.access.redhat.com/ubi9/go-toolset:1.21
22
ARG OPERATOR_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:latest
33
# Build the manager binary
44
FROM $GOLANG_BUILDER AS builder

Makefile

Lines changed: 4 additions & 3 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/openstack-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
CRDDESC_OVERRIDE ?= :maxDescLen=0
6060

@@ -164,7 +164,7 @@ tidy: ## Run go mod tidy on every mod file in the repo
164164

165165
.PHONY: golangci-lint
166166
golangci-lint:
167-
test -s $(LOCALBIN)/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.51.2
167+
test -s $(LOCALBIN)/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
168168
$(LOCALBIN)/golangci-lint run --fix
169169

170170
.PHONY: test
@@ -269,6 +269,7 @@ KUSTOMIZE_VERSION ?= v3.8.7
269269
CONTROLLER_TOOLS_VERSION ?= v0.11.1
270270
CRD_MARKDOWN_VERSION ?= v0.0.3
271271
KUTTL_VERSION ?= 0.17.0
272+
GOTOOLCHAIN_VERSION ?= go1.21.0
272273

273274
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
274275
.PHONY: kustomize
@@ -437,7 +438,7 @@ golint: get-ci-tools
437438

438439
.PHONY: gowork
439440
gowork: ## Generate go.work file to support our multi module repository
440-
test -f go.work || go work init
441+
test -f go.work || GOTOOLCHAIN=$(GOTOOLCHAIN_VERSION) go work init
441442
go work use .
442443
go work use ./apis
443444
go work sync

apis/bases/core.openstack.org_openstackcontrolplanes.yaml

Lines changed: 766 additions & 108 deletions
Large diffs are not rendered by default.

apis/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -567,18 +567,6 @@ spec:
567567
type: object
568568
resources:
569569
properties:
570-
claims:
571-
items:
572-
properties:
573-
name:
574-
type: string
575-
required:
576-
- name
577-
type: object
578-
type: array
579-
x-kubernetes-list-map-keys:
580-
- name
581-
x-kubernetes-list-type: map
582570
limits:
583571
additionalProperties:
584572
anyOf:
@@ -622,6 +610,8 @@ spec:
622610
x-kubernetes-map-type: atomic
623611
storageClassName:
624612
type: string
613+
volumeAttributesClassName:
614+
type: string
625615
volumeMode:
626616
type: string
627617
volumeName:
@@ -810,6 +800,43 @@ spec:
810800
sources:
811801
items:
812802
properties:
803+
clusterTrustBundle:
804+
properties:
805+
labelSelector:
806+
properties:
807+
matchExpressions:
808+
items:
809+
properties:
810+
key:
811+
type: string
812+
operator:
813+
type: string
814+
values:
815+
items:
816+
type: string
817+
type: array
818+
required:
819+
- key
820+
- operator
821+
type: object
822+
type: array
823+
matchLabels:
824+
additionalProperties:
825+
type: string
826+
type: object
827+
type: object
828+
x-kubernetes-map-type: atomic
829+
name:
830+
type: string
831+
optional:
832+
type: boolean
833+
path:
834+
type: string
835+
signerName:
836+
type: string
837+
required:
838+
- path
839+
type: object
813840
configMap:
814841
properties:
815842
items:

apis/go.mod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openstack-k8s-operators/openstack-operator/apis
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/cert-manager/cert-manager v1.13.6
@@ -35,10 +35,10 @@ require (
3535
go.uber.org/zap v1.27.0 // indirect
3636
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
3737
golang.org/x/tools v0.24.0 // indirect
38-
k8s.io/api v0.28.13
39-
k8s.io/apimachinery v0.28.13
40-
k8s.io/client-go v0.28.13
41-
sigs.k8s.io/controller-runtime v0.16.6
38+
k8s.io/api v0.29.9
39+
k8s.io/apimachinery v0.29.9
40+
k8s.io/client-go v0.29.9
41+
sigs.k8s.io/controller-runtime v0.17.6
4242
)
4343

4444
require k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
@@ -100,8 +100,8 @@ require (
100100
gopkg.in/inf.v0 v0.9.1 // indirect
101101
gopkg.in/yaml.v2 v2.4.0 // indirect
102102
gopkg.in/yaml.v3 v3.0.1 // indirect
103-
k8s.io/apiextensions-apiserver v0.28.13 // indirect
104-
k8s.io/component-base v0.28.13 // indirect
103+
k8s.io/apiextensions-apiserver v0.29.2 // indirect
104+
k8s.io/component-base v0.29.2 // indirect
105105
k8s.io/klog/v2 v2.120.1 // indirect
106106
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
107107
sigs.k8s.io/gateway-api v0.8.0 // indirect
@@ -110,9 +110,9 @@ require (
110110
sigs.k8s.io/yaml v1.4.0 // indirect
111111
)
112112

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

117117
// custom RabbitmqClusterSpecCore for OpenStackControlplane (v2.6.0_patches_tag)
118118
replace github.com/rabbitmq/cluster-operator/v2 => github.com/openstack-k8s-operators/rabbitmq-cluster-operator/v2 v2.6.1-0.20240719064129-c0201810c8f5 //allow-merging

0 commit comments

Comments
 (0)