diff options
author | 2022-01-31 14:59:24 +0000 | |
---|---|---|
committer | 2022-01-31 14:59:24 +0000 | |
commit | 0eec968ce240c0f029de5c3d3f8b3e8037ee74ce (patch) | |
tree | 44ed2213ea1877c2da51b2698ff9a00d5cc78147 /kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml | |
parent | 85a13b2a91f3ba076a8ce28d9d7877354c6c0439 (diff) | |
parent | 2b764d035310d91744b4c22ace83593b9a561116 (diff) |
Merge "[SDC] Service Mesh Compliance for SDC"
Diffstat (limited to 'kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml')
-rw-r--r-- | kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml b/kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml index d92b42a09c..bfc1ef8e7b 100644 --- a/kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml +++ b/kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml @@ -62,6 +62,13 @@ spec: - name: {{ include "common.name" . }}-job image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.onboardingInitImage }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + {{- if include "common.onServiceMesh" . }} + args: + - echo "waiting 10s for istio side cars to be up"; sleep 10s; /home/sdc/startup.sh + command: + - /bin/sh + - -c + {{- end }} volumeMounts: - name: {{ include "common.fullname" . }}-environments mountPath: /home/sdc/chef-solo/environments/ @@ -90,6 +97,7 @@ spec: requests: cpu: 200m memory: 200Mi + {{ include "common.waitForJobContainer" . | indent 6 | trim }} volumes: - name: {{ include "common.fullname" . }}-environments configMap: |