summaryrefslogtreecommitdiffstats
path: root/kubernetes/contrib/components/awx/templates/job.yaml
diff options
context:
space:
mode:
authorJack Lucas <jflos@sonoris.net>2022-07-20 13:33:34 +0000
committerGerrit Code Review <gerrit@onap.org>2022-07-20 13:33:34 +0000
commit2cadfa7605ef5392d3df3d3f4dbdb1f37e77f789 (patch)
treec45ab8f5edcc0a57191917479dd621cdbe2521ff /kubernetes/contrib/components/awx/templates/job.yaml
parent19253fcbba119e3c57ccd39690e04afa02e40f33 (diff)
parent70190b319b461982fe80be32e0cf0ad6e615e9b1 (diff)
Merge "[CONTRIB] Make AWX ServiceMesh compatibel"
Diffstat (limited to 'kubernetes/contrib/components/awx/templates/job.yaml')
-rw-r--r--kubernetes/contrib/components/awx/templates/job.yaml13
1 files changed, 9 insertions, 4 deletions
diff --git a/kubernetes/contrib/components/awx/templates/job.yaml b/kubernetes/contrib/components/awx/templates/job.yaml
index f974f446c2..1ebe340a68 100644
--- a/kubernetes/contrib/components/awx/templates/job.yaml
+++ b/kubernetes/contrib/components/awx/templates/job.yaml
@@ -51,11 +51,16 @@ spec:
apiVersion: v1
fieldPath: metadata.namespace
containers:
- - command: ["/bin/sh","-c"]
- args: ["/etc/tower/job-entrypoint.sh"]
+ - name: {{ include "common.name" . }}-mgnt
+ command:
+ - /bin/sh
+ - -cx
+ - |
+ {{- if include "common.onServiceMesh" . }}
+ echo "waiting 15s for istio side cars to be up"; sleep 15s;{{- end }}
+ /etc/tower/job-entrypoint.sh
image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image.task }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
- name: {{ include "common.name" . }}-mgnt
resources:
requests:
cpu: 1500m
@@ -78,7 +83,7 @@ spec:
name: awx-secret-key
readOnly: true
subPath: SECRET_KEY
-
+ {{ include "common.waitForJobContainer" . | indent 6 | trim }}
volumes:
- configMap:
defaultMode: 0777