summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/charts/policy-api/templates/deployment.yaml
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2019-04-15 14:51:13 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-15 14:51:13 +0000
commit0b841299b5cf6ab32d14775eaa3a67e7f7c55401 (patch)
treef3ee8ad0205ce3e165061c7513daae1f3c39abfd /kubernetes/policy/charts/policy-api/templates/deployment.yaml
parent53196542d0131ab77a9e29023b1b51fb68d90b0e (diff)
parent8fdac3a5ff89610c88ed8ea4462521d696530a5c (diff)
Merge "Fix policy/api charts"
Diffstat (limited to 'kubernetes/policy/charts/policy-api/templates/deployment.yaml')
-rw-r--r--kubernetes/policy/charts/policy-api/templates/deployment.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/kubernetes/policy/charts/policy-api/templates/deployment.yaml b/kubernetes/policy/charts/policy-api/templates/deployment.yaml
index 2d16b5e857..b79c6bf9c7 100644
--- a/kubernetes/policy/charts/policy-api/templates/deployment.yaml
+++ b/kubernetes/policy/charts/policy-api/templates/deployment.yaml
@@ -16,6 +16,21 @@ spec:
app: {{ include "common.name" . }}
release: {{ .Release.Name }}
spec:
+ initContainers:
+ - command:
+ - /root/ready.py
+ args:
+ - --container-name
+ - {{ .Values.global.mariadb.nameOverride }}
+ env:
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ apiVersion: v1
+ fieldPath: metadata.namespace
+ image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
+ imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ name: {{ include "common.name" . }}-readiness
containers:
- name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"