From 134aca96391bb4c44e87c9fea9ba76da3adbb56b Mon Sep 17 00:00:00 2001 From: Michael Schnerring <3743342+schnerring@users.noreply.github.com> Date: Sun, 10 Jul 2022 20:50:43 +0000 Subject: [PATCH] Add ClickHouse init container output (#163) --- charts/common/Chart.yaml | 2 +- charts/common/templates/lib/controller/_prepare.tpl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index d67aa076..e2296773 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 10.4.1 +version: 10.4.2 diff --git a/charts/common/templates/lib/controller/_prepare.tpl b/charts/common/templates/lib/controller/_prepare.tpl index c6df7425..6acb3be2 100644 --- a/charts/common/templates/lib/controller/_prepare.tpl +++ b/charts/common/templates/lib/controller/_prepare.tpl @@ -152,15 +152,17 @@ before chart installation. echo "Redis Responded, ending initcontainer and starting main container(s)..." else echo "$response" - echo "Redis not respoding... Sleeping for 10 sec..." + echo "Redis not responding... Sleeping for 10 sec..." sleep 10 fi; done {{- end }} {{- if .Values.clickhouse.enabled }} until wget --quiet --tries=1 --spider "${CLICKHOUSE_PING}"; do + echo "ClickHouse - no response. Sleeping 2 seconds..." sleep 2 done + echo "ClickHouse - accepting connections" {{- end }} {{- if .Values.solr.enabled }} if [ "$SOLR_ENABLE_AUTHENTICATION" == "yes" ]; then