diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-10-30 14:32:03 +0100 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-11-02 16:49:49 +0000 |
commit | d055a17d87b9e6bbfde51f523eea1838bc6b40dd (patch) | |
tree | 2e2a04467c315f0dd25363602fbae6c5f98bc132 /kubernetes/so/components/so-cnf-adapter/templates/deployment.yaml | |
parent | 92b606b267cf7e48336f3383bfb459253052c88c (diff) |
[SO] Use readiness chart
Some SO components are using readiness check init container. In "gating"
mode, so image and readiness image are not coming from the same
repository.
By using readinessCheck charts, we can control that.
Issue-ID: OOM-2617
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I44a4e9daf72d1a42d3d84b6d56b588cd7d44fb08
Diffstat (limited to 'kubernetes/so/components/so-cnf-adapter/templates/deployment.yaml')
-rwxr-xr-x | kubernetes/so/components/so-cnf-adapter/templates/deployment.yaml | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/kubernetes/so/components/so-cnf-adapter/templates/deployment.yaml b/kubernetes/so/components/so-cnf-adapter/templates/deployment.yaml index 8c894ad49a..dfff4341f5 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 "common.repository" . }}/{{ .Values.global.readinessImage }} - imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + {{ include "common.readinessCheck.waitFor" . | indent 8 | trim }} containers: - name: {{ include "common.name" . }} image: {{ include "common.repository" . }}/{{ .Values.image }} |