Skip to content

Commit cf98091

Browse files
Bump golang version to 1.24 and 1.30.x k8s deps (#1678)
1 parent 423b6eb commit cf98091

File tree

5 files changed

+36
-16
lines changed

5 files changed

+36
-16
lines changed

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go
1515
uses: actions/setup-go@v4
1616
with:
17-
go-version: '1.23'
17+
go-version: '1.24'
1818

1919
- name: Test api
2020
run: go test -v ./api/...

config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml

+24-4
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,15 @@ spec:
333333
If additionally, tls.pem is present, then it needs to be equal to the concatenation of tls.crt and tls.key
334334
properties:
335335
name:
336+
default: ""
336337
description: |-
337338
Name of the referent.
338-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
339+
This field is effectively required, but due to backwards compatibility is
340+
allowed to be empty. Instances of this type with an empty value here are
341+
almost certainly wrong.
339342
TODO: Add other useful fields. apiVersion, kind, uid?
343+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
344+
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
340345
type: string
341346
type: object
342347
x-kubernetes-map-type: atomic
@@ -463,10 +468,15 @@ spec:
463468
The certificate is expected to be available under the key "ca.crt"
464469
properties:
465470
name:
471+
default: ""
466472
description: |-
467473
Name of the referent.
468-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
474+
This field is effectively required, but due to backwards compatibility is
475+
allowed to be empty. Instances of this type with an empty value here are
476+
almost certainly wrong.
469477
TODO: Add other useful fields. apiVersion, kind, uid?
478+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
479+
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
470480
type: string
471481
type: object
472482
x-kubernetes-map-type: atomic
@@ -477,10 +487,15 @@ spec:
477487
This field is ignored when CaCertificateSecretRef is configured
478488
properties:
479489
name:
490+
default: ""
480491
description: |-
481492
Name of the referent.
482-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
493+
This field is effectively required, but due to backwards compatibility is
494+
allowed to be empty. Instances of this type with an empty value here are
495+
almost certainly wrong.
483496
TODO: Add other useful fields. apiVersion, kind, uid?
497+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
498+
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
484499
type: string
485500
type: object
486501
x-kubernetes-map-type: atomic
@@ -493,10 +508,15 @@ spec:
493508
If all of tls.pem, tls.crt and tls.key are present, the tls.pem one needs to be equal to the concatenation of tls.crt and tls.key
494509
properties:
495510
name:
511+
default: ""
496512
description: |-
497513
Name of the referent.
498-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
514+
This field is effectively required, but due to backwards compatibility is
515+
allowed to be empty. Instances of this type with an empty value here are
516+
almost certainly wrong.
499517
TODO: Add other useful fields. apiVersion, kind, uid?
518+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
519+
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
500520
type: string
501521
type: object
502522
x-kubernetes-map-type: atomic

go.mod

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/mongodb/mongodb-kubernetes-operator
22

3-
go 1.23.0
3+
go 1.24.0
44

55
require (
66
github.com/blang/semver v3.5.1+incompatible
@@ -14,9 +14,9 @@ require (
1414
go.mongodb.org/mongo-driver v1.16.0
1515
go.uber.org/zap v1.27.0
1616
gopkg.in/natefinch/lumberjack.v2 v2.2.1
17-
k8s.io/api v0.30.1
18-
k8s.io/apimachinery v0.30.1
19-
k8s.io/client-go v0.30.1
17+
k8s.io/api v0.30.10
18+
k8s.io/apimachinery v0.30.10
19+
k8s.io/client-go v0.30.10
2020
k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0
2121
sigs.k8s.io/controller-runtime v0.18.7
2222
sigs.k8s.io/yaml v1.4.0

go.sum

+6-6
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
228228
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
229229
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
230230
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
231-
k8s.io/api v0.30.1 h1:kCm/6mADMdbAxmIh0LBjS54nQBE+U4KmbCfIkF5CpJY=
232-
k8s.io/api v0.30.1/go.mod h1:ddbN2C0+0DIiPntan/bye3SW3PdwLa11/0yqwvuRrJM=
231+
k8s.io/api v0.30.10 h1:2YvzRF/BELgCvxbQqFKaan5hnj2+y7JOuqu2WpVk3gg=
232+
k8s.io/api v0.30.10/go.mod h1:Hyz3ZuK7jVLJBUFvwzDSGwxHuDdsrGs5RzF16wfHIn4=
233233
k8s.io/apiextensions-apiserver v0.30.1 h1:4fAJZ9985BmpJG6PkoxVRpXv9vmPUOVzl614xarePws=
234234
k8s.io/apiextensions-apiserver v0.30.1/go.mod h1:R4GuSrlhgq43oRY9sF2IToFh7PVlF1JjfWdoG3pixk4=
235-
k8s.io/apimachinery v0.30.1 h1:ZQStsEfo4n65yAdlGTfP/uSHMQSoYzU/oeEbkmF7P2U=
236-
k8s.io/apimachinery v0.30.1/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc=
237-
k8s.io/client-go v0.30.1 h1:uC/Ir6A3R46wdkgCV3vbLyNOYyCJ8oZnjtJGKfytl/Q=
238-
k8s.io/client-go v0.30.1/go.mod h1:wrAqLNs2trwiCH/wxxmT/x3hKVH9PuV0GGW0oDoHVqc=
235+
k8s.io/apimachinery v0.30.10 h1:UflKuJeSSArttm05wjYP0GwpTlvjnMbDKFn6F7rKkKU=
236+
k8s.io/apimachinery v0.30.10/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc=
237+
k8s.io/client-go v0.30.10 h1:C0oWM82QMvosIl/IdJhWfTUb7rIxM52rNSutFBknAVY=
238+
k8s.io/client-go v0.30.10/go.mod h1:OfTvt0yuo8VpMViOsgvYQb+tMJQLNWVBqXWkzdFXSq4=
239239
k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw=
240240
k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
241241
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag=

release.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"golang-builder-image": "golang:1.23",
2+
"golang-builder-image": "golang:1.24",
33
"operator": "0.12.0",
44
"version-upgrade-hook": "1.0.9",
55
"readiness-probe": "1.0.22",

0 commit comments

Comments
 (0)