Skip to content

Commit d43f084

Browse files
[CLOUDP-341578] Update client-go and related module to version to v0.31.11 (#370)
# Summary As part of the release process we are planning to upgrade the client-go version to `0.31.11`. This PR does that. Just updating the client-go results into a compatibility issue with `controller-runtime`, ``` # sigs.k8s.io/controller-runtime/pkg/internal/controller ../../../go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:103:9: not enough arguments in call to fn have (interface{}) want (context.Context, interface{}) # sigs.k8s.io/controller-runtime/pkg/webhook/admission ../../../go/pkg/mod/sigs.k8s.io/[email protected]/pkg/webhook/admission/webhook.go:158:9: not enough arguments in call to fn have (interface{}) want (context.Context, interface{}) ``` that's why we are also updating `controller-runtime` to newer version (`v0.19.4`). Updating controller-runtime was a breaking because most of the utilities now are typed (using generics) that why we had to make respective go file changes. ## Proof of Work Running `go build` in the root of the repo works, that makes sure that we are able to build the binary. Apart from that I also ran `go test` in the dirs where I am changing the test files and that worked as well. ``` ~/work/opensource/mongodb-kubernetes/mongodb-community-operator/controllers/watch (update-client-go) » go test -run TestWatcher vivek.s@M-HYXVRF7WDG PASS ok github.com/mongodb/mongodb-kubernetes/mongodb-community-operator/controllers/watch 0.374s ~/work/opensource/mongodb-kubernetes/controllers/operator (update-client-go*) » go test -run TestMongoDBSearchReconcile_Success 1 ↵ vivek.s@M-HYXVRF7WDG 2025-08-26T12:17:41.620+0200 INFO operator/mongodbsearch_controller.go:46 -> MongoDBSearch.Reconcile {"MongoDBSearch": "my-namespace/search"} 2025-08-26T12:17:41.621+0200 INFO search_controller/mongodbsearch_reconcile_helper.go:73 Reconciling MongoDBSearch {"MongoDBSearch": "my-namespace/search", "MongoDBSearch": "my-namespace/search"} 2025-08-26T12:17:41.621+0200 DEBUG search_controller/mongodbsearch_reconcile_helper.go:140 Updated search service my-namespace/search-search-svc: created 2025-08-26T12:17:41.621+0200 DEBUG search_controller/mongodbsearch_reconcile_helper.go:166 Updated mongot config yaml config map: my-namespace/search-search-config (created) with the following configuration: communityPrivatePreview: dataPath: /mongot/data/config.yml keyFilePath: /mongot/keyfile/keyfile logging: verbosity: DEBUG metrics: address: localhost:9946 enabled: true mongodHostAndPort: mdb-svc.my-namespace.svc.cluster.local:27017 queryServerAddress: localhost:27027 2025-08-26T12:17:41.621+0200 DEBUG search_controller/mongodbsearch_reconcile_helper.go:122 Search statefulset my-namespace/search-search CreateOrUpdate result: created {"MongoDBSearch": "my-namespace/search", "MongoDBSearch": "my-namespace/search"} 2025-08-26T12:17:41.623+0200 DEBUG inspect/statefulset_inspector.go:32 StatefulSet search-search (wanted: 1, ready: 0, updated: 0, generation: 0, observedGeneration: 0) 2025-08-26T12:17:41.623+0200 DEBUG commoncontroller/resourcestatus.go:25 Updating status: phase=Pending, options=[{Message:StatefulSet not ready} {Warnings:[]} {ResourcesNotReady:[{Kind:StatefulSet Name:search-search Errors:[] Message:Not all the Pods are ready (wanted: 1, updated: 0, ready: 0, current: 0)}]}] {"MongoDBSearch": "my-namespace/search"} PASS ok github.com/mongodb/mongodb-kubernetes/controllers/operator 0.835s ```
1 parent 67204b6 commit d43f084

33 files changed

+187
-210
lines changed

LICENSE-THIRD-PARTY

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ github.com/blang/semver,v3.5.1,https://github.com/blang/semver/blob/v3.5.1/LICEN
44
github.com/cenkalti/backoff/v4,v4.3.0,https://github.com/cenkalti/backoff/blob/v4.3.0/LICENSE,MIT
55
github.com/cenkalti/backoff/v5,v5.0.2,https://github.com/cenkalti/backoff/blob/v5.0.2/LICENSE,MIT
66
github.com/cespare/xxhash/v2,v2.3.0,https://github.com/cespare/xxhash/blob/v2.3.0/LICENSE.txt,MIT
7-
github.com/davecgh/go-spew/spew,v1.1.1,https://github.com/davecgh/go-spew/blob/v1.1.1/LICENSE,ISC
7+
github.com/davecgh/go-spew/spew,v1.1.2-0.20180830191138-d8f796af33cc,https://github.com/davecgh/go-spew/blob/d8f796af33cc/LICENSE,ISC
88
github.com/emicklei/go-restful/v3,v3.11.0,https://github.com/emicklei/go-restful/blob/v3.11.0/LICENSE,MIT
99
github.com/evanphx/json-patch/v5,v5.9.0,https://github.com/evanphx/json-patch/blob/v5.9.0/v5/LICENSE,BSD-3-Clause
1010
github.com/fsnotify/fsnotify,v1.7.0,https://github.com/fsnotify/fsnotify/blob/v1.7.0/LICENSE,BSD-3-Clause
11+
github.com/fxamacker/cbor/v2,v2.7.0,https://github.com/fxamacker/cbor/blob/v2.7.0/LICENSE,MIT
1112
github.com/ghodss/yaml,v1.0.0,https://github.com/ghodss/yaml/blob/v1.0.0/LICENSE,MIT
1213
github.com/go-jose/go-jose/v4,v4.0.5,https://github.com/go-jose/go-jose/blob/v4.0.5/LICENSE,Apache-2.0
1314
github.com/go-jose/go-jose/v4/json,v4.0.5,https://github.com/go-jose/go-jose/blob/v4.0.5/json/LICENSE,BSD-3-Clause
@@ -16,7 +17,7 @@ github.com/go-logr/stdr,v1.2.2,https://github.com/go-logr/stdr/blob/v1.2.2/LICEN
1617
github.com/go-logr/zapr,v1.3.0,https://github.com/go-logr/zapr/blob/v1.3.0/LICENSE,Apache-2.0
1718
github.com/go-openapi/jsonpointer,v0.19.6,https://github.com/go-openapi/jsonpointer/blob/v0.19.6/LICENSE,Apache-2.0
1819
github.com/go-openapi/jsonreference,v0.20.2,https://github.com/go-openapi/jsonreference/blob/v0.20.2/LICENSE,Apache-2.0
19-
github.com/go-openapi/swag,v0.22.3,https://github.com/go-openapi/swag/blob/v0.22.3/LICENSE,Apache-2.0
20+
github.com/go-openapi/swag,v0.22.4,https://github.com/go-openapi/swag/blob/v0.22.4/LICENSE,Apache-2.0
2021
github.com/gogo/protobuf,v1.3.2,https://github.com/gogo/protobuf/blob/v1.3.2/LICENSE,BSD-3-Clause
2122
github.com/golang/groupcache/lru,v0.0.0-20210331224755-41bb18bfe9da,https://github.com/golang/groupcache/blob/41bb18bfe9da/LICENSE,Apache-2.0
2223
github.com/golang/protobuf,v1.5.4,https://github.com/golang/protobuf/blob/v1.5.4/LICENSE,BSD-3-Clause
@@ -45,7 +46,7 @@ github.com/modern-go/concurrent,v0.0.0-20180306012644-bacd9c7ef1dd,https://githu
4546
github.com/modern-go/reflect2,v1.0.2,https://github.com/modern-go/reflect2/blob/v1.0.2/LICENSE,Apache-2.0
4647
github.com/munnerz/goautoneg,v0.0.0-20191010083416-a7dc8b61c822,https://github.com/munnerz/goautoneg/blob/a7dc8b61c822/LICENSE,BSD-3-Clause
4748
github.com/pkg/errors,v0.9.1,https://github.com/pkg/errors/blob/v0.9.1/LICENSE,BSD-2-Clause
48-
github.com/pmezard/go-difflib/difflib,v1.0.0,https://github.com/pmezard/go-difflib/blob/v1.0.0/LICENSE,BSD-3-Clause
49+
github.com/pmezard/go-difflib/difflib,v1.0.1-0.20181226105442-5d4384ee4fb2,https://github.com/pmezard/go-difflib/blob/5d4384ee4fb2/LICENSE,BSD-3-Clause
4950
github.com/prometheus/client_golang/internal/github.com/golang/gddo/httputil,v1.23.0,https://github.com/prometheus/client_golang/blob/v1.23.0/internal/github.com/golang/gddo/LICENSE,BSD-3-Clause
5051
github.com/prometheus/client_golang/prometheus,v1.23.0,https://github.com/prometheus/client_golang/blob/v1.23.0/LICENSE,Apache-2.0
5152
github.com/prometheus/client_model/go,v0.6.2,https://github.com/prometheus/client_model/blob/v0.6.2/LICENSE,Apache-2.0
@@ -59,6 +60,7 @@ github.com/stretchr/objx,v0.5.2,https://github.com/stretchr/objx/blob/v0.5.2/LIC
5960
github.com/stretchr/testify/assert,v1.10.0,https://github.com/stretchr/testify/blob/v1.10.0/LICENSE,MIT
6061
github.com/vmihailenco/msgpack/v5,v5.4.1,https://github.com/vmihailenco/msgpack/blob/v5.4.1/LICENSE,BSD-2-Clause
6162
github.com/vmihailenco/tagparser/v2,v2.0.0,https://github.com/vmihailenco/tagparser/blob/v2.0.0/LICENSE,BSD-2-Clause
63+
github.com/x448/float16,v0.8.4,https://github.com/x448/float16/blob/v0.8.4/LICENSE,MIT
6264
github.com/xdg/stringprep,v1.0.3,https://github.com/xdg/stringprep/blob/v1.0.3/LICENSE,Apache-2.0
6365
go.opentelemetry.io/auto/sdk,v1.1.0,https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/sdk/v1.1.0/sdk/LICENSE,Apache-2.0
6466
go.opentelemetry.io/otel,v1.37.0,https://github.com/open-telemetry/opentelemetry-go/blob/v1.37.0/LICENSE,Apache-2.0
@@ -80,18 +82,18 @@ gopkg.in/inf.v0,v0.9.1,https://github.com/go-inf/inf/blob/v0.9.1/LICENSE,BSD-3-C
8082
gopkg.in/natefinch/lumberjack.v2,v2.2.1,https://github.com/natefinch/lumberjack/blob/v2.2.1/LICENSE,MIT
8183
gopkg.in/yaml.v2,v2.4.0,https://github.com/go-yaml/yaml/blob/v2.4.0/LICENSE,Apache-2.0
8284
gopkg.in/yaml.v3,v3.0.1,https://github.com/go-yaml/yaml/blob/v3.0.1/LICENSE,MIT
83-
k8s.io/api,v0.30.10,https://github.com/kubernetes/api/blob/v0.30.10/LICENSE,Apache-2.0
84-
k8s.io/apiextensions-apiserver/pkg/apis/apiextensions,v0.30.1,https://github.com/kubernetes/apiextensions-apiserver/blob/v0.30.1/LICENSE,Apache-2.0
85-
k8s.io/apimachinery/pkg,v0.30.10,https://github.com/kubernetes/apimachinery/blob/v0.30.10/LICENSE,Apache-2.0
86-
k8s.io/apimachinery/third_party/forked/golang,v0.30.10,https://github.com/kubernetes/apimachinery/blob/v0.30.10/third_party/forked/golang/LICENSE,BSD-3-Clause
87-
k8s.io/client-go,v0.30.10,https://github.com/kubernetes/client-go/blob/v0.30.10/LICENSE,Apache-2.0
85+
k8s.io/api,v0.31.11,https://github.com/kubernetes/api/blob/v0.31.11/LICENSE,Apache-2.0
86+
k8s.io/apiextensions-apiserver/pkg/apis/apiextensions,v0.31.0,https://github.com/kubernetes/apiextensions-apiserver/blob/v0.31.0/LICENSE,Apache-2.0
87+
k8s.io/apimachinery/pkg,v0.31.11,https://github.com/kubernetes/apimachinery/blob/v0.31.11/LICENSE,Apache-2.0
88+
k8s.io/apimachinery/third_party/forked/golang,v0.31.11,https://github.com/kubernetes/apimachinery/blob/v0.31.11/third_party/forked/golang/LICENSE,BSD-3-Clause
89+
k8s.io/client-go,v0.31.11,https://github.com/kubernetes/client-go/blob/v0.31.11/LICENSE,Apache-2.0
8890
k8s.io/klog/v2,v2.130.1,https://github.com/kubernetes/klog/blob/v2.130.1/LICENSE,Apache-2.0
8991
k8s.io/kube-openapi/pkg,v0.0.0-20240228011516-70dd3763d340,https://github.com/kubernetes/kube-openapi/blob/70dd3763d340/LICENSE,Apache-2.0
9092
k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json,v0.0.0-20240228011516-70dd3763d340,https://github.com/kubernetes/kube-openapi/blob/70dd3763d340/pkg/internal/third_party/go-json-experiment/json/LICENSE,BSD-3-Clause
9193
k8s.io/kube-openapi/pkg/validation/spec,v0.0.0-20240228011516-70dd3763d340,https://github.com/kubernetes/kube-openapi/blob/70dd3763d340/pkg/validation/spec/LICENSE,Apache-2.0
92-
k8s.io/utils,v0.0.0-20240502163921-fe8a2dddb1d0,https://github.com/kubernetes/utils/blob/fe8a2dddb1d0/LICENSE,Apache-2.0
93-
k8s.io/utils/internal/third_party/forked/golang/net,v0.0.0-20240502163921-fe8a2dddb1d0,https://github.com/kubernetes/utils/blob/fe8a2dddb1d0/internal/third_party/forked/golang/LICENSE,BSD-3-Clause
94-
sigs.k8s.io/controller-runtime,v0.18.7,https://github.com/kubernetes-sigs/controller-runtime/blob/v0.18.7/LICENSE,Apache-2.0
94+
k8s.io/utils,v0.0.0-20240711033017-18e509b52bc8,https://github.com/kubernetes/utils/blob/18e509b52bc8/LICENSE,Apache-2.0
95+
k8s.io/utils/internal/third_party/forked/golang/net,v0.0.0-20240711033017-18e509b52bc8,https://github.com/kubernetes/utils/blob/18e509b52bc8/internal/third_party/forked/golang/LICENSE,BSD-3-Clause
96+
sigs.k8s.io/controller-runtime,v0.19.4,https://github.com/kubernetes-sigs/controller-runtime/blob/v0.19.4/LICENSE,Apache-2.0
9597
sigs.k8s.io/json,v0.0.0-20221116044647-bc3834ca7abd,https://github.com/kubernetes-sigs/json/blob/bc3834ca7abd/LICENSE,Apache-2.0
9698
sigs.k8s.io/structured-merge-diff/v4,v4.4.1,https://github.com/kubernetes-sigs/structured-merge-diff/blob/v4.4.1/LICENSE,Apache-2.0
9799
sigs.k8s.io/yaml,v1.6.0,https://github.com/kubernetes-sigs/yaml/blob/v1.6.0/LICENSE,Apache-2.0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ docker-push:
359359
# Download controller-gen locally if necessary
360360
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
361361
controller-gen:
362-
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.15.0)
362+
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.18.0)
363363

364364
# Download kustomize locally if necessary
365365
KUSTOMIZE = $(shell pwd)/bin/kustomize
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11

2-
github.com/davecgh/go-spew/spew,v1.1.1,https://github.com/davecgh/go-spew/blob/v1.1.1/LICENSE,ISC
2+
github.com/davecgh/go-spew/spew,v1.1.2-0.20180830191138-d8f796af33cc,https://github.com/davecgh/go-spew/blob/d8f796af33cc/LICENSE,ISC
33
github.com/emicklei/go-restful/v3,v3.11.0,https://github.com/emicklei/go-restful/blob/v3.11.0/LICENSE,MIT
4+
github.com/fxamacker/cbor/v2,v2.7.0,https://github.com/fxamacker/cbor/blob/v2.7.0/LICENSE,MIT
45
github.com/ghodss/yaml,v1.0.0,https://github.com/ghodss/yaml/blob/v1.0.0/LICENSE,MIT
56
github.com/go-logr/logr,v1.4.3,https://github.com/go-logr/logr/blob/v1.4.3/LICENSE,Apache-2.0
67
github.com/go-openapi/jsonpointer,v0.19.6,https://github.com/go-openapi/jsonpointer/blob/v0.19.6/LICENSE,Apache-2.0
78
github.com/go-openapi/jsonreference,v0.20.2,https://github.com/go-openapi/jsonreference/blob/v0.20.2/LICENSE,Apache-2.0
8-
github.com/go-openapi/swag,v0.22.3,https://github.com/go-openapi/swag/blob/v0.22.3/LICENSE,Apache-2.0
9+
github.com/go-openapi/swag,v0.22.4,https://github.com/go-openapi/swag/blob/v0.22.4/LICENSE,Apache-2.0
910
github.com/gogo/protobuf,v1.3.2,https://github.com/gogo/protobuf/blob/v1.3.2/LICENSE,BSD-3-Clause
1011
github.com/golang/protobuf,v1.5.4,https://github.com/golang/protobuf/blob/v1.5.4/LICENSE,BSD-3-Clause
1112
github.com/google/gnostic-models,v0.6.8,https://github.com/google/gnostic-models/blob/v0.6.8/LICENSE,Apache-2.0
13+
github.com/google/go-cmp/cmp,v0.7.0,https://github.com/google/go-cmp/blob/v0.7.0/LICENSE,BSD-3-Clause
1214
github.com/google/gofuzz,v1.2.0,https://github.com/google/gofuzz/blob/v1.2.0/LICENSE,Apache-2.0
1315
github.com/google/uuid,v1.6.0,https://github.com/google/uuid/blob/v1.6.0/LICENSE,BSD-3-Clause
1416
github.com/imdario/mergo,v0.3.15,https://github.com/imdario/mergo/blob/v0.3.15/LICENSE,BSD-3-Clause
@@ -20,21 +22,22 @@ github.com/modern-go/reflect2,v1.0.2,https://github.com/modern-go/reflect2/blob/
2022
github.com/munnerz/goautoneg,v0.0.0-20191010083416-a7dc8b61c822,https://github.com/munnerz/goautoneg/blob/a7dc8b61c822/LICENSE,BSD-3-Clause
2123
github.com/spf13/cobra,v1.9.1,https://github.com/spf13/cobra/blob/v1.9.1/LICENSE.txt,Apache-2.0
2224
github.com/spf13/pflag,v1.0.6,https://github.com/spf13/pflag/blob/v1.0.6/LICENSE,BSD-3-Clause
25+
github.com/x448/float16,v0.8.4,https://github.com/x448/float16/blob/v0.8.4/LICENSE,MIT
2326
go.yaml.in/yaml/v2,v2.4.2,https://github.com/yaml/go-yaml/blob/v2.4.2/LICENSE,Apache-2.0
2427
google.golang.org/protobuf,v1.36.6,https://github.com/protocolbuffers/protobuf-go/blob/v1.36.6/LICENSE,BSD-3-Clause
2528
gopkg.in/inf.v0,v0.9.1,https://github.com/go-inf/inf/blob/v0.9.1/LICENSE,BSD-3-Clause
2629
gopkg.in/yaml.v2,v2.4.0,https://github.com/go-yaml/yaml/blob/v2.4.0/LICENSE,Apache-2.0
2730
gopkg.in/yaml.v3,v3.0.1,https://github.com/go-yaml/yaml/blob/v3.0.1/LICENSE,MIT
28-
k8s.io/api,v0.30.10,https://github.com/kubernetes/api/blob/v0.30.10/LICENSE,Apache-2.0
29-
k8s.io/apimachinery/pkg,v0.30.10,https://github.com/kubernetes/apimachinery/blob/v0.30.10/LICENSE,Apache-2.0
30-
k8s.io/apimachinery/third_party/forked/golang/reflect,v0.30.10,https://github.com/kubernetes/apimachinery/blob/v0.30.10/third_party/forked/golang/LICENSE,BSD-3-Clause
31-
k8s.io/client-go,v0.30.10,https://github.com/kubernetes/client-go/blob/v0.30.10/LICENSE,Apache-2.0
31+
k8s.io/api,v0.31.11,https://github.com/kubernetes/api/blob/v0.31.11/LICENSE,Apache-2.0
32+
k8s.io/apimachinery/pkg,v0.31.11,https://github.com/kubernetes/apimachinery/blob/v0.31.11/LICENSE,Apache-2.0
33+
k8s.io/apimachinery/third_party/forked/golang/reflect,v0.31.11,https://github.com/kubernetes/apimachinery/blob/v0.31.11/third_party/forked/golang/LICENSE,BSD-3-Clause
34+
k8s.io/client-go,v0.31.11,https://github.com/kubernetes/client-go/blob/v0.31.11/LICENSE,Apache-2.0
3235
k8s.io/klog/v2,v2.130.1,https://github.com/kubernetes/klog/blob/v2.130.1/LICENSE,Apache-2.0
3336
k8s.io/kube-openapi/pkg,v0.0.0-20240228011516-70dd3763d340,https://github.com/kubernetes/kube-openapi/blob/70dd3763d340/LICENSE,Apache-2.0
3437
k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json,v0.0.0-20240228011516-70dd3763d340,https://github.com/kubernetes/kube-openapi/blob/70dd3763d340/pkg/internal/third_party/go-json-experiment/json/LICENSE,BSD-3-Clause
3538
k8s.io/kube-openapi/pkg/validation/spec,v0.0.0-20240228011516-70dd3763d340,https://github.com/kubernetes/kube-openapi/blob/70dd3763d340/pkg/validation/spec/LICENSE,Apache-2.0
36-
k8s.io/utils,v0.0.0-20240502163921-fe8a2dddb1d0,https://github.com/kubernetes/utils/blob/fe8a2dddb1d0/LICENSE,Apache-2.0
37-
k8s.io/utils/internal/third_party/forked/golang/net,v0.0.0-20240502163921-fe8a2dddb1d0,https://github.com/kubernetes/utils/blob/fe8a2dddb1d0/internal/third_party/forked/golang/LICENSE,BSD-3-Clause
39+
k8s.io/utils,v0.0.0-20240711033017-18e509b52bc8,https://github.com/kubernetes/utils/blob/18e509b52bc8/LICENSE,Apache-2.0
40+
k8s.io/utils/internal/third_party/forked/golang/net,v0.0.0-20240711033017-18e509b52bc8,https://github.com/kubernetes/utils/blob/18e509b52bc8/internal/third_party/forked/golang/LICENSE,BSD-3-Clause
3841
sigs.k8s.io/json,v0.0.0-20221116044647-bc3834ca7abd,https://github.com/kubernetes-sigs/json/blob/bc3834ca7abd/LICENSE,Apache-2.0
3942
sigs.k8s.io/structured-merge-diff/v4,v4.4.1,https://github.com/kubernetes-sigs/structured-merge-diff/blob/v4.4.1/LICENSE,Apache-2.0
4043
sigs.k8s.io/yaml,v1.6.0,https://github.com/kubernetes-sigs/yaml/blob/v1.6.0/LICENSE,Apache-2.0

config/crd/bases/mongodb.com_clustermongodbroles.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: clustermongodbroles.mongodb.com
88
spec:
99
group: mongodb.com

config/crd/bases/mongodb.com_mongodb.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: mongodb.mongodb.com
88
spec:
99
group: mongodb.com
@@ -1423,9 +1423,7 @@ spec:
14231423
This field is effectively required, but due to backwards compatibility is
14241424
allowed to be empty. Instances of this type with an empty value here are
14251425
almost certainly wrong.
1426-
TODO: Add other useful fields. apiVersion, kind, uid?
14271426
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1428-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
14291427
type: string
14301428
optional:
14311429
description: Specify whether the Secret or its key
@@ -1482,9 +1480,7 @@ spec:
14821480
This field is effectively required, but due to backwards compatibility is
14831481
allowed to be empty. Instances of this type with an empty value here are
14841482
almost certainly wrong.
1485-
TODO: Add other useful fields. apiVersion, kind, uid?
14861483
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1487-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
14881484
type: string
14891485
optional:
14901486
description: Specify whether the ConfigMap or its

config/crd/bases/mongodb.com_mongodbmulticluster.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: mongodbmulticluster.mongodb.com
88
spec:
99
group: mongodb.com
@@ -683,9 +683,7 @@ spec:
683683
This field is effectively required, but due to backwards compatibility is
684684
allowed to be empty. Instances of this type with an empty value here are
685685
almost certainly wrong.
686-
TODO: Add other useful fields. apiVersion, kind, uid?
687686
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
688-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
689687
type: string
690688
optional:
691689
description: Specify whether the Secret or its key
@@ -742,9 +740,7 @@ spec:
742740
This field is effectively required, but due to backwards compatibility is
743741
allowed to be empty. Instances of this type with an empty value here are
744742
almost certainly wrong.
745-
TODO: Add other useful fields. apiVersion, kind, uid?
746743
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
747-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
748744
type: string
749745
optional:
750746
description: Specify whether the ConfigMap or its

config/crd/bases/mongodb.com_mongodbsearch.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: mongodbsearch.mongodb.com
88
spec:
99
group: mongodb.com
@@ -102,11 +102,9 @@ spec:
102102
Claims lists the names of resources, defined in spec.resourceClaims,
103103
that are used by this container.
104104
105-
106105
This is an alpha field and requires enabling the
107106
DynamicResourceAllocation feature gate.
108107
109-
110108
This field is immutable. It can only be set for containers.
111109
items:
112110
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
@@ -117,6 +115,12 @@ spec:
117115
the Pod where this field is used. It makes that resource available
118116
inside a container.
119117
type: string
118+
request:
119+
description: |-
120+
Request is the name chosen for a request in the referenced claim.
121+
If empty, everything from the claim is made available, otherwise
122+
only the result of this request.
123+
type: string
120124
required:
121125
- name
122126
type: object

config/crd/bases/mongodb.com_mongodbusers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.15.0
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: mongodbusers.mongodb.com
88
spec:
99
group: mongodb.com

0 commit comments

Comments
 (0)