diff options
author | Dan Timoney <dtimoney@att.com> | 2021-04-01 15:49:23 -0400 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2021-04-06 12:58:04 +0000 |
commit | da135d210995dca46042c51562a37fd99af45391 (patch) | |
tree | b27b34ce1296c792bb1fcb4c4a575050a09875f5 /kubernetes/sdnc/templates | |
parent | 333281b85d86c356ab0f09caab82890fce0442fb (diff) |
[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 <dtimoney@att.com>
Change-Id: I3fb9dad6b36fc8a549094e94b0a6a8936f9a4916
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
(cherry picked from commit 17554770bdc355599c18fbdf87edbe9bcfc9b0e3)
Diffstat (limited to 'kubernetes/sdnc/templates')
-rw-r--r-- | kubernetes/sdnc/templates/statefulset.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
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 |