diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index c81593e1..2c7eb49c 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 11.1.1 +version: 11.1.2 diff --git a/charts/common/templates/lib/controller/_prepare.tpl b/charts/common/templates/lib/controller/_prepare.tpl index c78b0744..23bddf96 100644 --- a/charts/common/templates/lib/controller/_prepare.tpl +++ b/charts/common/templates/lib/controller/_prepare.tpl @@ -97,7 +97,7 @@ before chart installation. name: mongodbcreds key: plainhost - name: MONGODB_DATABASE - value: "{{ .Values.mongodb.mongoDatabase }}" + value: "{{ .Values.mongodb.mongodbDatabase }}" {{- end }} {{- if .Values.clickhouse.enabled }} - name: CLICKHOUSE_PING @@ -141,7 +141,7 @@ before chart installation. {{- end }} {{- if .Values.mongodb.enabled }} until - echo "db.runCommand(\"ping\")" | mongosh --host ${MONGODB_HOST} --port 27017 ${MONGODB_DATABASE} --quiet; + HOME=/config && echo "db.runCommand(\"ping\")" | mongosh --host ${MONGODB_HOST} --port 27017 ${MONGODB_DATABASE} --quiet; do sleep 2; done {{- end }}