Skip to content

Commit d7595f8

Browse files
authored
(DOCSP-24919): Added a note about the optional connectionStringSecretName field. (#1038)
* (DOCSP-24919): Added a note about the optional connectionStringSecretName field. * (DOCSP-24919): Incorporated John's feedback.
1 parent ddd2403 commit d7595f8

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

source/includes/facts/fact-if-create-user-creates-secret.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,12 @@ contains the following information about the new database user:
77
- ``connectionString.standard``: :manual:`Standard connection string </reference/connection-string/#std-label-connections-standard-connection-string-format>`
88
that can connect you to the database as this database user.
99
- ``connectionString.standardSrv``: :manual:`DNS seed list connection string </reference/connection-string/#dns-seed-list-connection-format>` that can
10-
connect you to the database as this database user.
10+
connect you to the database as this database user.
11+
12+
.. note::
13+
14+
Alternatively, you can specify an optional
15+
``spec.connectionStringSecretName`` field in the
16+
``MongoDBUser``custom resource to specify
17+
the name of the connection string secret that the
18+
|k8s-op-short| creates.

source/includes/steps-add-database-user-scram.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ content: |
102102
103103
kubectl apply -f <database-user-conf>.yaml
104104
105-
.. note::
106-
107-
.. include:: /includes/facts/fact-if-create-user-creates-secret.rst
105+
.. include:: /includes/facts/fact-if-create-user-creates-secret.rst
108106
109-
You can use these credentials to :ref:`Connect to a MongoDB Database Resource from Inside Kubernetes <connect-from-inside-k8s>`.
107+
You can use these credentials to
108+
:ref:`Connect to a MongoDB Database Resource from Inside Kubernetes
109+
<connect-from-inside-k8s>`.
110110
---
111111
title: "View the newly created user in |com|."
112112
level: 4

source/includes/steps-add-database-user.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,9 @@ content: |
136136
137137
kubectl apply -f <database-user-conf>.yaml
138138
139-
.. note::
139+
.. include:: /includes/facts/fact-if-create-user-creates-secret.rst
140140
141-
.. include:: /includes/facts/fact-if-create-user-creates-secret.rst
142-
143-
You can use these credentials to :ref:`Connect to a MongoDB Database Resource from Inside Kubernetes <connect-from-inside-k8s>`.
141+
You can use these credentials to :ref:`Connect to a MongoDB Database Resource from Inside Kubernetes <connect-from-inside-k8s>`.
144142
---
145143
title: "View the newly created user in |com|."
146144
level: 4

0 commit comments

Comments
 (0)