Skip to content

Commit 6e2270c

Browse files
authored
(DOCSP-21766): Added a note about the optional connectionStringSecretName field. (#1102)
* (DOCSP-21766): Added a note about the optional connectionStringSecretName field. * (DOCSP-21766): Incorporated JW's feedback.
1 parent 33f85c0 commit 6e2270c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/deploy-configure.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,18 @@ To deploy your first replica set:
3838
| `<auth-db>` | [Authentication database](https://www.mongodb.com/docs/manual/core/security-users/#std-label-user-authentication-database) where you defined the database user. | `admin` |
3939
| `<username>` | Username of the database user. | `my-user` |
4040

41+
**NOTE**: Alternatively, you can specify an optional
42+
`users[i].connectionStringSecretName` field in the
43+
``MongoDBCommunity`` custom resource to specify
44+
the name of the connection string secret that the
45+
Community Kubernetes Operator creates.
46+
4147
Update the variables in the following command, then run it to retrieve a user's connection strings to the replica set from the secret:
4248

4349
**NOTE**: The following command requires [jq](https://stedolan.github.io/jq/) version 1.6 or higher.</br></br>
4450

4551
```sh
46-
kubectl get secret <metadata.name>-<auth-db>-<username> -n <my-namespace> \
52+
kubectl get secret <connection-string-secret-name> -n <my-namespace> \
4753
-o json | jq -r '.data | with_entries(.value |= @base64d)'
4854
```
4955

0 commit comments

Comments
 (0)