From 25cbdb9a7559aae0be6c14647c3882f6fa9731e2 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 24 Feb 2023 02:46:45 +0200 Subject: [PATCH] couple more --- library/common/templates/lib/dependencies/_dbWait.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/common/templates/lib/dependencies/_dbWait.tpl b/library/common/templates/lib/dependencies/_dbWait.tpl index f2549084..1aa6ecaa 100644 --- a/library/common/templates/lib/dependencies/_dbWait.tpl +++ b/library/common/templates/lib/dependencies/_dbWait.tpl @@ -52,6 +52,9 @@ {{- $container := include "tc.v1.common.lib.deps.wait.solr" $ | fromYaml -}} {{- if $container -}} {{- range .Values.workload -}} + {{- if not (hasKey . "initContainers") -}} + {{- $_ := set .podSpec "initContainers" dict -}} + {{- end -}} {{- $_ := set .podSpec.initContainers "solr-wait" $container -}} {{- end }} {{- end -}} @@ -61,6 +64,9 @@ {{- $container := include "tc.v1.common.lib.deps.wait.postgresql" $ | fromYaml -}} {{- if $container -}} {{- range .Values.workload -}} + {{- if not (hasKey . "initContainers") -}} + {{- $_ := set .podSpec "initContainers" dict -}} + {{- end -}} {{- $_ := set .podSpec.initContainers "postgresql-wait" $container -}} {{- end }} {{- end -}}