bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
8.97k stars 9.2k forks source link

[stable/mongodb] Database not being created with mongodbDatabase set #1625

Closed aharper273 closed 4 years ago

aharper273 commented 4 years ago

Which chart:

stable/mongodb

Description The database I set in my helm install does not appear to be created. the value is being set in Helm, but when I login as a root and list the databases, the database I set to be created does not exist. It does not appear when I connect with compass either. Is this a bug, or am I doing it wrong? Is there a way around it?

Steps to reproduce the issue:

  1. Run:

    helm install --name my-release \
    --set mongodbRootPassword=secretpassword,mongodbUsername=my-user,mongodbPassword=my-password,mongodbDatabase=my-database \
    stable/mongodb
  2. login to the mongo shell as root

  3. list databases

Describe the results you received:

admin   0.000GB
config  0.000GB
local   0.000GB

Describe the results you expected:

admin   0.000GB
config  0.000GB
local   0.000GB
my-database 0.000GB

Additional information you deem important (e.g. issue happens only occasionally):

I have tried with various different database names and it doesn't work. Running helm get values my-release outputs

mongodbDatabase: my-database
mongodbPassword: my-password
mongodbRootPassword: secretpassword
mongodbUsername: my-user

Version of Helm and Kubernetes:

Client: &version.Version{SemVer:"v2.14.1", GitCommit:"5270352a09c7e8b6e8c9593002a73535276507c0", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.14.1", GitCommit:"5270352a09c7e8b6e8c9593002a73535276507c0", GitTreeState:"clean"}
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-07T09:56:58Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.4", GitCommit:"67d2fcf276fcd9cf743ad4be9a9ef5828adc082f", GitTreeState:"clean", BuildDate:"2019-09-18T14:41:55Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
aharper273 commented 4 years ago

This is the wrong place for this ticket. I am closing it here.