Skip to content

Commit b1830a2

Browse files
authored
(DOCSP-47262) Fix the example (#2052) (#2056)
* (DOCSP-47262) Fix the example * fixed another example
1 parent 1165004 commit b1830a2

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: "Copy the following example MongoDBUser."
2+
title: "Copy the following MongoDBUser example."
33
level: 4
44
stepnum: 1
55
ref: copy-k8s-user-configmap
66
content: |
77
88
.. literalinclude:: /reference/k8s/example-scram-user.yaml
99
:language: yaml
10-
:emphasize-lines: 5,8,11,14,17-24
10+
:emphasize-lines: 5,8,11,14,17-22
1111
1212
---
1313
title: "Create a new MongoDBUser file."

source/includes/steps-kind-quick-start.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,14 @@ content: |
243243
db: "admin" #
244244
mongodbResourceRef:
245245
name: "demo-mongodb-cluster-1"
246-
# Match to MongoDB resource using authenticaiton
246+
# Match to MongoDB resource using authentication
247247
roles:
248248
- db: "admin"
249249
name: "clusterAdmin"
250250
- db: "admin"
251251
name: "userAdminAnyDatabase"
252252
- db: "admin"
253253
name: "readWrite"
254-
- db: "admin"
255-
name: "userAdminAnyDatabase"
256254
257255
#. Run the following command:
258256

source/reference/k8s/example-scram-user.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ spec:
1212
db: "admin" #
1313
mongodbResourceRef:
1414
name: "<my-replica-set>"
15-
# Match to MongoDB resource using authenticaiton
15+
# Match to MongoDB resource using authentication
1616
roles:
1717
- db: "admin"
1818
name: "clusterAdmin"
1919
- db: "admin"
2020
name: "userAdminAnyDatabase"
2121
- db: "admin"
2222
name: "readWrite"
23-
- db: "admin"
24-
name: "userAdminAnyDatabase"
23+
2524
...

0 commit comments

Comments
 (0)