From a4dd185a22c20dbb9dcccbbe21fd26d22de2613d Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 29 Aug 2022 12:32:39 +0300 Subject: [PATCH] fix(init): use new mongo shell (#214) --- charts/common/Chart.yaml | 2 +- charts/common/templates/lib/controller/_prepare.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index 2a806ae6..224c5d69 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 10.5.2 +version: 10.5.3 diff --git a/charts/common/templates/lib/controller/_prepare.tpl b/charts/common/templates/lib/controller/_prepare.tpl index f94d504f..bee45f64 100644 --- a/charts/common/templates/lib/controller/_prepare.tpl +++ b/charts/common/templates/lib/controller/_prepare.tpl @@ -118,7 +118,7 @@ before chart installation. {{- end }} {{- if .Values.mongodb.enabled }} until - echo "db.runCommand(\"ping\")" | mongo --host ${MONGODB_HOST} --port 27017 ${MONGODB_DATABASE} --quiet; + echo "db.runCommand(\"ping\")" | mongosh --host ${MONGODB_HOST} --port 27017 ${MONGODB_DATABASE} --quiet; do sleep 2; done {{- end }}