From 69e3d20f76c9ce72fa85fa1cc2c83bc87c10ee11 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 28 Mar 2022 23:39:51 +0300 Subject: [PATCH] chore(mongodb): adjust init (#13) --- charts/common/Chart.yaml | 2 +- charts/common/templates/lib/dependencies/_mongodbInit.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index 349ecd38..f1f6efff 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 9.2.2 +version: 9.2.3 diff --git a/charts/common/templates/lib/dependencies/_mongodbInit.tpl b/charts/common/templates/lib/dependencies/_mongodbInit.tpl index f03f7373..f415d7cb 100644 --- a/charts/common/templates/lib/dependencies/_mongodbInit.tpl +++ b/charts/common/templates/lib/dependencies/_mongodbInit.tpl @@ -25,7 +25,7 @@ This template ensures pods with mongodb dependency have a delayed start args: - > until - echo "db.runCommand(\"ping\").ok" | mongo --host ${MONGODB_HOST} --port 27017 ${MONGODB_DATABASE} --quiet; + echo "db.runCommand(\"ping\")" | mongo --host ${MONGODB_HOST} --port 27017 ${MONGODB_DATABASE} --quiet; do sleep 2; done imagePullPolicy: IfNotPresent