diff options
author | Chenfei Gao <cgao@research.att.com> | 2019-04-12 14:39:40 -0400 |
---|---|---|
committer | Chenfei Gao <cgao@research.att.com> | 2019-04-12 14:53:56 -0400 |
commit | 8fdac3a5ff89610c88ed8ea4462521d696530a5c (patch) | |
tree | 3db19b2324562f04cb1a66d5a8c800ecd86ca5ce /kubernetes/policy/charts/policy-api/templates | |
parent | 44bb1331811826ab4ac256a8c60b9333e68bd2da (diff) |
Fix policy/api charts
Add "policyadmin" db into policy-api config.json
Issue-ID: POLICY-1640
Change-Id: I9c091b35eaae0a734d4371bcf619ebdfa9dac9d3
Signed-off-by: Chenfei Gao <cgao@research.att.com>
Diffstat (limited to 'kubernetes/policy/charts/policy-api/templates')
-rw-r--r-- | kubernetes/policy/charts/policy-api/templates/deployment.yaml | 15 |
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 }}" |