From a95552103f004c2967b3dad449859e861ca898e5 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 21 Oct 2024 11:58:16 +0200 Subject: [PATCH] Enhance FerretDB healtcheck during initialization (#437) Signed-off-by: Andrei Kvapil Signed-off-by: Andrei Kvapil --- packages/apps/ferretdb/Chart.yaml | 2 +- packages/apps/ferretdb/templates/init-script.yaml | 3 +++ packages/apps/versions_map | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/apps/ferretdb/Chart.yaml b/packages/apps/ferretdb/Chart.yaml index d23dfe5e..0b8fc993 100644 --- a/packages/apps/ferretdb/Chart.yaml +++ b/packages/apps/ferretdb/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.4.0 +version: 0.4.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/packages/apps/ferretdb/templates/init-script.yaml b/packages/apps/ferretdb/templates/init-script.yaml index beef5a5a..fb64edbf 100644 --- a/packages/apps/ferretdb/templates/init-script.yaml +++ b/packages/apps/ferretdb/templates/init-script.yaml @@ -34,6 +34,9 @@ stringData: init.sh: | #!/bin/bash set -e + + until pg_isready ; do sleep 5; done + echo "== create users" {{- if .Values.users }} psql -v ON_ERROR_STOP=1 <<\EOT diff --git a/packages/apps/versions_map b/packages/apps/versions_map index 2ee27227..5d578434 100644 --- a/packages/apps/versions_map +++ b/packages/apps/versions_map @@ -10,7 +10,8 @@ ferretdb 0.1.0 4ffa8615 ferretdb 0.1.1 5ca8823 ferretdb 0.2.0 adaf603 ferretdb 0.3.0 aa2f553 -ferretdb 0.4.0 HEAD +ferretdb 0.4.0 def2eb0f +ferretdb 0.4.1 HEAD http-cache 0.1.0 a956713 http-cache 0.2.0 5ca8823 http-cache 0.3.0 fab5940