architecture: replicaset replicaCount: ${ replicas } auth: enabled: true existingSecret: mongodb-auth %{ if length(usernames) > 0 } usernames: %{ for username in usernames ~} - ${ username } %{ endfor ~} %{ endif } %{ if length(databases) > 0 } databases: %{ for database in databases ~} - ${ database } %{ endfor ~} %{ endif }