From a2e327595e334ee75b7f82fe46bfdd7195158ebc Mon Sep 17 00:00:00 2001 From: Sylvain Desbureaux Date: Tue, 8 Dec 2020 18:03:50 +0100 Subject: [SO] Use readiness check job support CNF Adapter needs to wait for mariadb config job to be performed. Unfortunately, when we deploy using gating, the repositoryOverride makes the pod to use a wrong image. With readinessCheck job support, we don't have this issue anymore Issue-ID: SO-3416 Signed-off-by: Sylvain Desbureaux Change-Id: I0ef79cdc46bc3dbd55988d3d1ad601ed9c6a4cdb --- .../components/so-cnf-adapter/templates/deployment.yaml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'kubernetes/so/components/so-cnf-adapter/templates') diff --git a/kubernetes/so/components/so-cnf-adapter/templates/deployment.yaml b/kubernetes/so/components/so-cnf-adapter/templates/deployment.yaml index 3c131321f3..4518a5f607 100755 --- a/kubernetes/so/components/so-cnf-adapter/templates/deployment.yaml +++ b/kubernetes/so/components/so-cnf-adapter/templates/deployment.yaml @@ -50,20 +50,7 @@ spec: volumeMounts: - name: encoder mountPath: /output - - name: {{ include "common.name" . }}-readiness - 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 "repositoryGenerator.image.readiness" . }} - imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + {{ include "common.readinessCheck.waitFor" . | indent 8 | trim }} containers: - name: {{ include "common.name" . }} image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} -- cgit 1.2.3-korg