9090
9191 additionalMongodConfig :
9292 type : object
93-
9493 exposedExternally :
9594 type : boolean
9695
@@ -174,7 +173,16 @@ spec:
174173 properties :
175174 mode :
176175 type : string
177- enum : ["SCRAM", "X509"]
176+ enum : ["SCRAM", "X509", "LDAP"]
177+ automationUsername :
178+ type : string
179+ automationPasswordSecretRef :
180+ type : object
181+ properties :
182+ name :
183+ type : string
184+ key :
185+ type : string
178186 required :
179187 - mode
180188 enabled :
@@ -209,7 +217,9 @@ spec:
209217 bindQueryUser :
210218 type : string
211219 servers :
212- type : string
220+ type : array
221+ items :
222+ type : string
213223 transportSecurity :
214224 type : string
215225 enum : ["none", "tls"]
@@ -224,6 +234,70 @@ spec:
224234 type : string
225235 userToDNMapping :
226236 type : string
237+ roles :
238+ type : array
239+ description : " List of roles not bounded to specific users"
240+ items :
241+ type : object
242+ properties :
243+ role :
244+ type : string
245+ description : " The name of the role"
246+ db :
247+ type : string
248+ description : " The db the role belongs to"
249+ roles :
250+ type : array
251+ description : " List of roles this role inherits from"
252+ items :
253+ type : object
254+ properties :
255+ db :
256+ type : string
257+ description : " The db the role belongs to"
258+ role :
259+ type : string
260+ description : " The name of the role"
261+ authenticationRestrictions :
262+ type : array
263+ description : " List of restriction for users authenticating to this role"
264+ items :
265+ type : object
266+ properties :
267+ clientSource :
268+ type : array
269+ description : " List of IP addresses or CIDR ranges allowed the user can connect from"
270+ items :
271+ type : string
272+ serverAddress :
273+ type : array
274+ description : " List of IP addresses or CIDR ranges allowed the user can connect to"
275+ items :
276+ type : string
277+ privileges :
278+ type : array
279+ description : " List of privileges granted to this role"
280+ items :
281+ type : object
282+ properties :
283+ actions :
284+ type : array
285+ description : " List of actions allowed to this role"
286+ items :
287+ type : string
288+ resource :
289+ type : object
290+ description : " Resource on which the privileges are granted"
291+ properties :
292+ db :
293+ type : string
294+ description : " Name of the database"
295+ collection :
296+ type : string
297+ description : " Name of the collection"
298+ cluster :
299+ type : boolean
300+ description : " True for cluster-wide privileges"
227301
228302 # Sharded Cluster properties
229303 shardPodSpec :
@@ -451,7 +525,6 @@ spec:
451525 properties :
452526 additionalMongodConfig :
453527 type : object
454-
455528---
456529apiVersion : apiextensions.k8s.io/v1beta1
457530kind : CustomResourceDefinition
0 commit comments