[SDNC] Add readiness check for sdnc-dbinit job 48/120148/3
authorDan Timoney <dtimoney@att.com>
Thu, 1 Apr 2021 19:49:23 +0000 (15:49 -0400)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 2 Apr 2021 12:23:41 +0000 (12:23 +0000)
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 <dtimoney@att.com>
Change-Id: I3fb9dad6b36fc8a549094e94b0a6a8936f9a4916
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
kubernetes/sdnc/templates/statefulset.yaml

index 027f01c..ea544e6 100644 (file)
@@ -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