summaryrefslogtreecommitdiffstats
path: root/kubernetes/so/components/so-mariadb/templates/job.yaml
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-11-05 10:02:41 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-05 10:02:41 +0000
commit13a3131a6816f874d1d605f4efed299f56b768c6 (patch)
treea0846fb9b80870e9d94071f09252138828842c8e /kubernetes/so/components/so-mariadb/templates/job.yaml
parentc519be91654f664648d5d30eb6d3fb9863dd0e97 (diff)
parentd055a17d87b9e6bbfde51f523eea1838bc6b40dd (diff)
Merge "[SO] Use readiness chart"
Diffstat (limited to 'kubernetes/so/components/so-mariadb/templates/job.yaml')
-rw-r--r--kubernetes/so/components/so-mariadb/templates/job.yaml18
1 files changed, 2 insertions, 16 deletions
diff --git a/kubernetes/so/components/so-mariadb/templates/job.yaml b/kubernetes/so/components/so-mariadb/templates/job.yaml
index cb7fcb352a..b3bacc1ed4 100644
--- a/kubernetes/so/components/so-mariadb/templates/job.yaml
+++ b/kubernetes/so/components/so-mariadb/templates/job.yaml
@@ -95,23 +95,9 @@ spec:
release: {{ include "common.release" . }}
name: {{ include "common.name" . }}
spec:
- initContainers:
- - name: {{ include "common.name" . }}-readiness
- command:
- - /app/ready.py
- args:
- - --container-name
- - {{ .Values.global.mariadbGalera.nameOverride }}
- env:
- - name: NAMESPACE
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: metadata.namespace
- image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
- imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ initContainers: {{ include "common.readinessCheck.waitFor" . | nindent 6 }}
containers:
- - name: {{ include "common.name" . }}
+ - name: {{ include "common.name" . }}-config
image: "{{ include "common.repository" . }}/{{ .Values.image }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command: