aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/so/components/so-request-db-adapter/templates
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-request-db-adapter/templates
parentc519be91654f664648d5d30eb6d3fb9863dd0e97 (diff)
parentd055a17d87b9e6bbfde51f523eea1838bc6b40dd (diff)
Merge "[SO] Use readiness chart"
Diffstat (limited to 'kubernetes/so/components/so-request-db-adapter/templates')
-rwxr-xr-xkubernetes/so/components/so-request-db-adapter/templates/deployment.yaml18
1 files changed, 3 insertions, 15 deletions
diff --git a/kubernetes/so/components/so-request-db-adapter/templates/deployment.yaml b/kubernetes/so/components/so-request-db-adapter/templates/deployment.yaml
index 25a6842bb9..0aac5f4b48 100755
--- a/kubernetes/so/components/so-request-db-adapter/templates/deployment.yaml
+++ b/kubernetes/so/components/so-request-db-adapter/templates/deployment.yaml
@@ -39,21 +39,9 @@ spec:
app: {{ include "common.name" . }}
release: {{ include "common.release" . }}
spec:
- initContainers: {{ include "so.certificate.container_importer" . | nindent 6 }}
- - command:
- - /app/ready.py
- args:
- - --job-name
- - {{ include "common.release" . }}-so-mariadb-config-job
- env:
- - name: NAMESPACE
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: metadata.namespace
- image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
- imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
- name: {{ include "common.name" . }}-readiness
+ initContainers:
+ {{ include "so.certificate.container_importer" . | indent 6 | trim }}
+ {{ include "common.readinessCheck.waitFor" . | indent 6 | trim }}
containers:
- name: {{ include "common.name" . }}
image: {{ include "common.repository" . }}/{{ .Values.image }}