mongodb allows you to add setup scripts to docker-entrypoint-initdb.d to create initial databases / tables. They also support the following environment variables for setting up users / databases:
we do not support it for now in the Operator. It is possible to perform the same operations with you CICD pipeline or side tools.
Our focus is to provision the infrastructure and MongoDB itself, without going into the database.
If there is a hard requirement or blocker please let us know.
I was able to create a root user by adding MONGO_INITDB_ROOT_USERNAME and MONGO_INITDB_ROOT_PASSWORD to my user secrets file, but I’m still looking into picking up the docker-entrypoint-initdb.d directory. Am I going about this wrong? Is this not supported?