Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit e79f95e

Browse files
authored
CLOUDP-78859: Rename Community CRD (#294)
* CLOUDP-78859: Rename Community CRD * Fix operator crash and test failures * Fix black formatting * Rename crs and fix docs * Fix missing mongodbcommunity_crd * Fix black formatting * Fix black formatting, the sequel
1 parent 7c55d29 commit e79f95e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+205
-205
lines changed

deploy/crds/arbitrary_statefulset_configuration/mongodb.com_v1_custom_volume_cr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: mongodb.com/v1
2-
kind: MongoDB
2+
kind: MongoDBCommunity
33
metadata:
44
name: example-mongodb
55
spec:

deploy/crds/mongodb.com_mongodb_crd.yaml renamed to deploy/crds/mongodb.com_mongodbcommunity_crd.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: apiextensions.k8s.io/v1beta1
22
kind: CustomResourceDefinition
33
metadata:
4-
name: mongodb.mongodb.com
4+
name: mongodbcommunity.mongodb.com
55
spec:
66
additionalPrinterColumns:
77
- JSONPath: .status.phase
@@ -14,18 +14,18 @@ spec:
1414
type: string
1515
group: mongodb.com
1616
names:
17-
kind: MongoDB
18-
listKind: MongoDBList
19-
plural: mongodb
17+
kind: MongoDBCommunity
18+
listKind: MongoDBCommunityList
19+
plural: mongodbcommunity
2020
shortNames:
21-
- mdb
22-
singular: mongodb
21+
- mdbc
22+
singular: mongodbcommunity
2323
scope: Namespaced
2424
subresources:
2525
status: {}
2626
validation:
2727
openAPIV3Schema:
28-
description: MongoDB is the Schema for the mongodbs API
28+
description: MongoDBCommunity is the Schema for the mongodbs API
2929
properties:
3030
apiVersion:
3131
description: 'APIVersion defines the versioned schema of this representation
@@ -40,7 +40,7 @@ spec:
4040
metadata:
4141
type: object
4242
spec:
43-
description: MongoDBSpec defines the desired state of MongoDB
43+
description: MongoDBCommunitySpec defines the desired state of MongoDB
4444
properties:
4545
featureCompatibilityVersion:
4646
description: FeatureCompatibilityVersion configures the feature compatibility
@@ -278,7 +278,7 @@ spec:
278278
- version
279279
type: object
280280
status:
281-
description: MongoDBStatus defines the observed state of MongoDB
281+
description: MongoDBCommunityStatus defines the observed state of MongoDB
282282
properties:
283283
currentMongoDBMembers:
284284
type: integer

deploy/crds/mongodb.com_v1_mongodb_cr.yaml renamed to deploy/crds/mongodb.com_v1_mongodbcommunity_cr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
apiVersion: mongodb.com/v1
3-
kind: MongoDB
3+
kind: MongoDBCommunity
44
metadata:
55
name: example-mongodb
66
spec:

deploy/crds/mongodb.com_v1_mongodb_custom_role.yaml renamed to deploy/crds/mongodb.com_v1_mongodbcommunity_custom_role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
apiVersion: mongodb.com/v1
3-
kind: MongoDB
3+
kind: MongoDBCommunity
44
metadata:
55
name: custom-role-mongodb
66
spec:

deploy/crds/mongodb.com_v1_mongodb_openshift_cr.yaml renamed to deploy/crds/mongodb.com_v1_mongodbcommunity_openshift_cr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
apiVersion: mongodb.com/v1
3-
kind: MongoDB
3+
kind: MongoDBCommunity
44
metadata:
55
name: example-openshift-mongodb
66
spec:

deploy/crds/mongodb.com_v1_mongodb_tls_cr.yaml renamed to deploy/crds/mongodb.com_v1_mongodbcommunity_tls_cr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
apiVersion: mongodb.com/v1
3-
kind: MongoDB
3+
kind: MongoDBCommunity
44
metadata:
55
name: example-mongodb
66
spec:

deploy/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- ./crds/mongodb.com_mongodb_crd.yaml
4+
- ./crds/mongodb.com_mongodbcommunity_crd.yaml
55
- ./operator/service_account.yaml
66
- ./operator/role.yaml
77
- ./operator/role_binding.yaml

docs/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You create and update MongoDB resources by defining a MongoDB resource definitio
2828
- `automation-config` which is mounted from the previously generated ConfigMap to both the server and agent. Only lives as long as the pod.
2929
- `healthstatus` which contains the agent's current status. This is shared with the `mongod` container where it's used by the pre-stop hook. Only lives as long as the pod.
3030

31-
1. Initiates the MongoDB Agent, which in turn creates the database configuration and launches the `mongod` process according to your [MongoDB resource definition](../deploy/crds/mongodb.com_v1_mongodb_cr.yaml).
31+
1. Initiates the MongoDB Agent, which in turn creates the database configuration and launches the `mongod` process according to your [MongoDB resource definition](../deploy/crds/mongodb.com_v1_mongodbcommunity_cr.yaml).
3232

3333
<!--
3434
<img src="" alt="Architecure diagram of the MongoDB Community Kubernetes Operator">

docs/deploy-configure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To deploy your first replica set:
1717

1818
1. Invoke the following `kubectl` command:
1919
```
20-
kubectl apply -f deploy/crds/mongodb.com_v1_mongodb_cr.yaml --namespace <my-namespace>
20+
kubectl apply -f deploy/crds/mongodb.com_v1_mongodbcommunity_cr.yaml --namespace <my-namespace>
2121
```
2222
2. Verify that the MongoDB resource deployed:
2323
```
@@ -129,7 +129,7 @@ To upgrade this resource from `4.0.6` to `4.2.7`:
129129

130130
To deploy the operator on OpenShift you will have to provide the environment variable `MANAGED_SECURITY_CONTEXT` set to `true` for both the `mongodb` and `mongodb-agent` containers, as well as the operator deployment.
131131

132-
See [here](../deploy/crds/mongodb.com_v1_mongodb_openshift_cr.yaml) for
132+
See [here](../deploy/crds/mongodb.com_v1_mongodbcommunity_openshift_cr.yaml) for
133133
an example of how to provide the required configuration for a MongoDB
134134
replica set.
135135

docs/install-upgrade.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ To install the MongoDB Community Kubernetes Operator:
3232

3333
a. Invoke the following `kubectl` command:
3434
```
35-
kubectl create -f deploy/crds/mongodb.com_mongodb_crd.yaml
35+
kubectl create -f deploy/crds/mongodb.com_mongodbcommunity_crd.yaml
3636
```
3737
b. Verify that the Custom Resource Definitions installed successfully:
3838
```
39-
kubectl get crd/mongodb.mongodb.com
39+
kubectl get crd/mongodbcommunity.mongodb.com
4040
```
4141
3. Install the Operator.
4242
@@ -56,5 +56,5 @@ To upgrade the MongoDB Community Kubernetes Operator:
5656
1. Change to the directory in which you cloned the repository.
5757
2. Invoke the following `kubectl` command to upgrade the [Custom Resource Definitions](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/).
5858
```
59-
kubectl apply -f deploy/crds/mongodb.com_mongodb_crd.yaml
59+
kubectl apply -f deploy/crds/mongodb.com_mongodbcommunity_crd.yaml
6060
```

0 commit comments

Comments
 (0)