Commit new App releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot 2022-04-25 11:32:08 +00:00
parent 63a4cd7c9e
commit 0e1b933167
15 changed files with 22 additions and 17 deletions

View File

@ -1,6 +1,15 @@
# Changelog<br>
<a name="mongodb-0.1.6"></a>
### [mongodb-0.1.6](https://github.com/truecharts/apps/compare/mongodb-0.1.5...mongodb-0.1.6) (2022-04-25)
#### Fix
* set advertised hostname ([#2560](https://github.com/truecharts/apps/issues/2560))
<a name="mongodb-0.1.5"></a>
### [mongodb-0.1.5](https://github.com/truecharts/apps/compare/mongodb-0.1.4...mongodb-0.1.5) (2022-04-24)
@ -88,12 +97,3 @@
#### Chore
* update docker general non-major ([#2497](https://github.com/truecharts/apps/issues/2497))
<a name="mongodb-0.0.27"></a>
### [mongodb-0.0.27](https://github.com/truecharts/apps/compare/mongodb-0.0.26...mongodb-0.0.27) (2022-04-16)
#### Chore

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://library-charts.truecharts.org
version: 9.3.1
digest: sha256:ac4b624a60adbe5e11e1e743c3c3075a577bc8d615f0217efc9d73c88951ee96
generated: "2022-04-24T22:01:34.82527369Z"
generated: "2022-04-25T11:25:44.620068754Z"

View File

@ -23,7 +23,7 @@ sources:
- https://github.com/bitnami/bitnami-docker-mongodb
- https://www.mongodb.com
type: application
version: 0.1.5
version: 0.1.6
annotations:
truecharts.org/catagories: |
- database

View File

@ -26,6 +26,7 @@ controller:
service:
main:
publishNotReadyAddresses: true
ports:
main:
port: 27017
@ -61,7 +62,7 @@ probes:
command:
- /bin/bash
- -ec
- echo "db.runCommand(\"ping\")" | mongo --host localhost --port 27017 ${MONGODB_DATABASE} --quiet
- echo "rs.status().ok" | mongo --host "${MONGODB_ADVERTISED_HOSTNAME}" -u root -p ${MONGODB_ROOT_PASSWORD} --port 27017 --quiet
# -- Redainess probe configuration
# @default -- See below
@ -78,7 +79,8 @@ probes:
command:
- /bin/bash
- -ec
- echo "db.runCommand(\"ping\")" | mongo --host localhost --port 27017 ${MONGODB_DATABASE} --quiet
- echo "rs.status().ok" | mongo --host "${MONGODB_ADVERTISED_HOSTNAME}" -u root -p ${MONGODB_ROOT_PASSWORD} --port 27017 --quiet
# -- Startup probe configuration
# @default -- See below
startup:
@ -93,7 +95,7 @@ probes:
command:
- /bin/bash
- -ec
- echo "db.runCommand(\"ping\")" | mongo --host localhost --port 27017 ${MONGODB_DATABASE} --quiet
- echo "rs.status().ok" | mongo --host "${MONGODB_ADVERTISED_HOSTNAME}" -u root -p ${MONGODB_ROOT_PASSWORD} --port 27017 --quiet
mongodbPassword: "testpass"
mongodbUsername: "test"
@ -102,7 +104,6 @@ mongodbRootPassword: "testroot"
mongodbReplicasetMode: "primary"
mongodbReplicasetName: "rs0"
mongodbReplicasetKey: "testreplicasetkey"
mongodbAdvertisedHostname: "localhost"
existingSecret: ""
envValueFrom:
@ -124,5 +125,8 @@ env:
MONGODB_DATABASE: "{{ .Values.mongodbDatabase }}"
MONGODB_REPLICA_SET_MODE: "{{ .Values.mongodbReplicasetMode }}"
MONGODB_REPLICA_SET_NAME: "{{ .Values.mongodbReplicasetName }}"
MONGODB_ADVERTISED_HOSTNAME: "{{ .Values.mongodbAdvertisedHostname }}"
MONGODB_ADVERTISED_PORT_NUMBER: "27017"
MONGODB_ADVERTISED_HOSTNAME: "{{ .Release.Name }}"
MONGODB_ADVERTISED_PORT_NUMBER: 27017
MONGODB_INITIAL_PRIMARY_HOST: "{{ .Release.Name }}"
MONGODB_INITIAL_PRIMARY_PORT_NUMBER: 27017
MONGODB_ENABLE_JOURNAL: true

View File

@ -15,6 +15,7 @@ data:
# '.script' extension is just to avoid the bitnami init script to executing it. (bitnami executes .sh and .js files automatically)
echo 'use '$MONGODB_DATABASE > /docker-entrypoint-initdb.d/createOpLogUser.script;
echo 'db.createUser({user: "'$MONGODB_USERNAME'-oplog", pwd: "'$MONGODB_PASSWORD'", roles: [ { role: "read", db: "local" } ]})' >> /docker-entrypoint-initdb.d/createOpLogUser.script;
echo 'hostname()' >> /docker-entrypoint-initdb.d/createOpLogUser.script;
echo "Command Generated!";
echo "Creating the user...";