Commit new App releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot
2022-04-25 19:11:12 +00:00
parent 6564ddd2fa
commit 68f5eafaf7
16 changed files with 15 additions and 100 deletions

View File

@@ -1,20 +0,0 @@
{{- include "common.setup" . }}
{{/* Append the hardcoded settings */}}
{{- define "mongodb.harcodedValues" -}}
persistence:
focalboard-config:
enabled: "true"
mountPath: "/docker-entrypoint-initdb.d/create-oplog-user.sh"
subPath: "create-oplog-user.sh"
type: "custom"
volumeSpec:
configMap:
name: {{ printf "%v-create-oplog-user" (include "common.names.fullname" .) }}
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "mongodb.harcodedValues" . | fromYaml) -}}
{{- include "mongodb.configmap" . }}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}

View File

@@ -1,28 +0,0 @@
{{- define "mongodb.configmap" -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}-create-oplog-user
labels:
{{- include "common.labels" . | nindent 4 }}
data:
create-oplog-user.sh: |-
#!/bin/bash
echo "Generating command for oplog user creation...";
# '.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...";
mongo admin -u root -p $MONGODB_ROOT_PASSWORD < /docker-entrypoint-initdb.d/createOpLogUser.script;
echo "User Created!";
echo "Removing mongodb generated command"...;
rm /docker-entrypoint-initdb.d/createOpLogUser.script;
echo "Removed mongodb generated command!";
{{- end -}}

View File

@@ -1,6 +1,15 @@
# Changelog<br>
<a name="mongodb-0.1.8"></a>
### [mongodb-0.1.8](https://github.com/truecharts/apps/compare/mongodb-0.1.7...mongodb-0.1.8) (2022-04-25)
#### Revert
* revert replicaset ([#2567](https://github.com/truecharts/apps/issues/2567))
<a name="mongodb-0.1.7"></a>
### [mongodb-0.1.7](https://github.com/truecharts/apps/compare/mongodb-0.1.6...mongodb-0.1.7) (2022-04-25)
@@ -88,12 +97,3 @@
#### Chore
* update helm chart common to v9.2.9 ([#2509](https://github.com/truecharts/apps/issues/2509))
<a name="mongodb-0.0.29"></a>
### [mongodb-0.0.29](https://github.com/truecharts/apps/compare/mongodb-0.0.28...mongodb-0.0.29) (2022-04-18)
#### Chore

View File

@@ -3,4 +3,4 @@ dependencies:
repository: https://library-charts.truecharts.org
version: 9.3.1
digest: sha256:ac4b624a60adbe5e11e1e743c3c3075a577bc8d615f0217efc9d73c88951ee96
generated: "2022-04-25T13:28:53.79231435Z"
generated: "2022-04-25T19:04:47.020790303Z"

View File

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

View File

@@ -26,7 +26,6 @@ controller:
service:
main:
publishNotReadyAddresses: true
ports:
main:
port: 27017
@@ -62,7 +61,7 @@ probes:
command:
- /bin/bash
- -ec
- echo "rs.status().ok" | mongo --host "${MONGODB_ADVERTISED_HOSTNAME}" -u root -p ${MONGODB_ROOT_PASSWORD} --port "${MONGODB_ADVERTISED_PORT_NUMBER}" --quiet
- echo "db.runCommand(\"ping\")" | mongo --host localhost --port 27017 ${MONGODB_DATABASE} --quiet
# -- Redainess probe configuration
# @default -- See below
@@ -79,7 +78,7 @@ probes:
command:
- /bin/bash
- -ec
- echo "rs.status().ok" | mongo --host "${MONGODB_ADVERTISED_HOSTNAME}" -u root -p ${MONGODB_ROOT_PASSWORD} --port "${MONGODB_ADVERTISED_PORT_NUMBER}" --quiet
- echo "db.runCommand(\"ping\")" | mongo --host localhost --port 27017 ${MONGODB_DATABASE} --quiet
# -- Startup probe configuration
# @default -- See below
@@ -95,16 +94,12 @@ probes:
command:
- /bin/bash
- -ec
- echo "rs.status().ok" | mongo --host "${MONGODB_ADVERTISED_HOSTNAME}" -u root -p ${MONGODB_ROOT_PASSWORD} --port "${MONGODB_ADVERTISED_PORT_NUMBER}" --quiet
- echo "db.runCommand(\"ping\")" | mongo --host localhost --port 27017 ${MONGODB_DATABASE} --quiet
mongodbPassword: "testpass"
mongodbUsername: "test"
mongodbDatabase: "test"
mongodbRootPassword: "testroot"
mongodbReplicasetMode: "primary"
mongodbReplicasetName: "rs0"
mongodbReplicasetKey: "testreplicasetkey"
mongodbDependency: false
existingSecret: ""
envValueFrom:
@@ -116,18 +111,7 @@ envValueFrom:
secretKeyRef:
name: '{{ ( tpl .Values.existingSecret $ ) | default ( include "common.names.fullname" . ) }}'
key: "mongodb-root-password"
MONGODB_REPLICA_SET_KEY:
secretKeyRef:
name: '{{ ( tpl .Values.existingSecret $ ) | default ( include "common.names.fullname" . ) }}'
key: "mongodb-replicaset-key"
env:
MONGODB_USERNAME: "{{ .Values.mongodbUsername }}"
MONGODB_DATABASE: "{{ .Values.mongodbDatabase }}"
MONGODB_REPLICA_SET_MODE: "{{ .Values.mongodbReplicasetMode }}"
MONGODB_REPLICA_SET_NAME: "{{ .Values.mongodbReplicasetName }}"
MONGODB_ADVERTISED_HOSTNAME: "{{ if .Values.mongodbDependency }}{{ .Release.Name }}-mongodb-0{{ else }}{{ .Release.Name }}-0{{ end }}"
MONGODB_ADVERTISED_PORT_NUMBER: 27017
MONGODB_INITIAL_PRIMARY_HOST: "{{ if .Values.mongodbDependency }}{{ .Release.Name }}-mongodb-0{{ else }}{{ .Release.Name }}-0{{ end }}"
MONGODB_INITIAL_PRIMARY_PORT_NUMBER: 27017
MONGODB_ENABLE_JOURNAL: true

View File

@@ -298,27 +298,6 @@ questions:
type: string
default: ""
required: true
- variable: mongodbReplicasetMode
group: "App Configuration"
label: "ReplicaSet Mode"
schema:
type: string
default: "primary"
required: true
- variable: mongodbReplicasetName
group: "App Configuration"
label: "ReplicaSet Name"
schema:
type: string
default: "rs0"
required: true
- variable: mongodbReplicasetKey
group: "App Configuration"
label: "ReplicaSet Key"
schema:
type: string
default: "testreplicasetkey"
required: true
- variable: service
group: "Networking and Services"

View File

@@ -0,0 +1 @@
{{- include "common.all" . }}

View File

@@ -12,4 +12,3 @@ type: Opaque
data:
mongodb-password: {{ ( .Values.mongodbPassword | default "empty" ) | b64enc | quote }}
mongodb-root-password: {{ ( .Values.mongodbRootPassword | default "empty" ) | b64enc | quote }}
mongodb-replicaset-key: {{ ( .Values.mongodbReplicasetKey | default "empty" ) | b64enc | quote }}