[AAI] Service mesh compatibility improvement
[oom.git] / kubernetes / aai / components / aai-graphadmin / templates / job-create-db.yaml
index 76a11fa..a934902 100644 (file)
@@ -126,7 +126,9 @@ spec:
         args:
         - -c
         - |
-           bash docker-entrypoint.sh createDBSchema.sh
+           {{- if include "common.onServiceMesh" . }}
+           echo "waiting 15s for istio side cars to be up"; sleep 15s;{{- end }}
+           bash docker-entrypoint.sh createDBSchema.sh;
            {{ include "common.serviceMesh.killSidecar" . | indent 11 | trim }}
         env:
         - name: LOCAL_USER_ID