diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2024-07-17 13:24:38 +0200 |
---|---|---|
committer | Andreas Geissler <andreas-geissler@telekom.de> | 2024-07-17 17:18:49 +0200 |
commit | b2c57e00121e912eaff312ffbf19168f4d3617d2 (patch) | |
tree | 67d97a00e7f78145e8ebbcde33993dd456a2c39c /kubernetes/common/mongodb-init/resources | |
parent | 004ebce85d8214df87689db574efd7f16c87524d (diff) |
[COMMON] Update various common charts
- add kyverno policy fixes for cassandra Operator template
- add new mongodb-init chart
- new parameter in global values to support "NativeSidecar"
which disables the deployment of the sidecar killer in jobs
- update of "killSideCar" function to use the new option
Issue-ID: OOM-3288
Issue-ID: OOM-3296
Change-Id: If7cafd10a14e9bc6b7843c0c2a62691c4e94ca71
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/common/mongodb-init/resources')
-rw-r--r-- | kubernetes/common/mongodb-init/resources/config/setup.sql | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kubernetes/common/mongodb-init/resources/config/setup.sql b/kubernetes/common/mongodb-init/resources/config/setup.sql new file mode 100644 index 0000000000..452ee187df --- /dev/null +++ b/kubernetes/common/mongodb-init/resources/config/setup.sql @@ -0,0 +1,11 @@ +// Database Setup +use ${MONGO_DATABASE} + +// UserCreation Setup +db.createUser( + { + user: "${MONGODB_USER}", + pwd: "${MONGODB_PASSWORD}", + roles: [ { role: "readWrite", db: "${MONGO_DATABASE}" } ] + } +) |