From da135d210995dca46042c51562a37fd99af45391 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Thu, 1 Apr 2021 15:49:23 -0400 Subject: [SDNC] Add readiness check for sdnc-dbinit job sdnc container needs to wait for completion of its dbinit job before coming online. This appears to be root cause for a recurring issue we have seen in gating runs and in weekly run, where we see errors that directed graphs are missing. Issue-ID: SDNC-1512 Signed-off-by: Dan Timoney Change-Id: I3fb9dad6b36fc8a549094e94b0a6a8936f9a4916 Signed-off-by: Krzysztof Opasiak (cherry picked from commit 17554770bdc355599c18fbdf87edbe9bcfc9b0e3) --- kubernetes/sdnc/templates/statefulset.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kubernetes') diff --git a/kubernetes/sdnc/templates/statefulset.yaml b/kubernetes/sdnc/templates/statefulset.yaml index 027f01ce01..ea544e6211 100644 --- a/kubernetes/sdnc/templates/statefulset.yaml +++ b/kubernetes/sdnc/templates/statefulset.yaml @@ -128,6 +128,8 @@ spec: {{ if or .Values.dgbuilder.enabled .Values.config.sdnr.enabled -}} - --container-name - {{ include "common.mariadbService" . }} + - --job-name + - {{ include "common.fullname" . }}-dbinit-job {{ end -}} {{ if .Values.config.sdnr.enabled -}} - --container-name -- cgit 1.2.3-korg