2 # Copyright © 2017 Amdocs, Bell Canada
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
30 app: {{ include "common.name" . }}
31 replicas: {{ .Values.replicaCount }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
43 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
46 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
47 - name: SDNC_DB_PASSWORD
48 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 10 }}
52 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 10 }}
54 - mountPath: /config-input
58 image: "{{ .Values.global.envsubstImage }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 name: {{ include "common.name" . }}-update-config
66 - {{ include "common.mariadbService" . }}
68 - {{ .Values.config.sdncChartName }}
70 - {{ .Values.config.msgRouterContainerName }}
76 fieldPath: metadata.namespace
77 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
78 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 name: {{ include "common.name" . }}-readiness
82 - /opt/onap/sdnc/dmaap-listener/bin/start-dmaap-listener.sh
83 name: {{ include "common.name" . }}
84 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
85 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
88 value: "{{ .Values.config.configDir }}"
89 - name: SDNC_CONFIG_DIR
90 value: "{{ .Values.config.configDir }}"
92 - mountPath: /etc/localtime
95 - mountPath: {{ .Values.config.configDir }}/dblib.properties
97 subPath: dblib.properties
98 - mountPath: {{ .Values.config.configDir }}/dhcpalert.properties
100 subPath: dhcpalert.properties
101 - mountPath: {{ .Values.config.configDir }}/lcm.properties
103 subPath: lcm.properties
104 - mountPath: {{ .Values.config.configDir }}/aai.properties
106 subPath: aai.properties
107 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-CMNotify.properties
109 subPath: dmaap-consumer-CMNotify.properties
110 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-a1Adapter-policy.properties
112 subPath: dmaap-consumer-a1Adapter-policy.properties
113 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-oofpcipoc.properties
115 subPath: dmaap-consumer-oofpcipoc.properties
117 {{ include "common.resources" . | indent 12 }}
118 {{- if .Values.nodeSelector }}
120 {{ toYaml .Values.nodeSelector | indent 10 }}
122 {{- if .Values.affinity }}
124 {{ toYaml .Values.affinity | indent 10 }}
133 name: {{ include "common.fullname" . }}
139 - name: "{{ include "common.namespace" . }}-docker-registry-key"