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.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
23 app: {{ include "common.name" . }}
24 replicas: {{ .Values.replicaCount }}
25 selector: {{- include "common.selectors" . | nindent 4 }}
27 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
34 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
37 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
38 - name: SDNC_DB_PASSWORD
39 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
41 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 10 }}
43 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 10 }}
45 - mountPath: /config-input
49 image: "{{ .Values.global.envsubstImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 name: {{ include "common.name" . }}-update-config
57 - {{ include "common.mariadbService" . }}
59 - {{ .Values.config.sdncChartName }}
61 - {{ .Values.config.msgRouterContainerName }}
67 fieldPath: metadata.namespace
68 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
69 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
70 name: {{ include "common.name" . }}-readiness
73 - /opt/onap/sdnc/dmaap-listener/bin/start-dmaap-listener.sh
74 name: {{ include "common.name" . }}
75 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
76 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 value: "{{ .Values.config.configDir }}"
80 - name: SDNC_CONFIG_DIR
81 value: "{{ .Values.config.configDir }}"
83 - mountPath: /etc/localtime
86 - mountPath: {{ .Values.config.configDir }}/dblib.properties
88 subPath: dblib.properties
89 - mountPath: {{ .Values.config.configDir }}/dhcpalert.properties
91 subPath: dhcpalert.properties
92 - mountPath: {{ .Values.config.configDir }}/lcm.properties
94 subPath: lcm.properties
95 - mountPath: {{ .Values.config.configDir }}/aai.properties
97 subPath: aai.properties
98 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-CMNotify.properties
100 subPath: dmaap-consumer-CMNotify.properties
101 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-a1Adapter-policy.properties
103 subPath: dmaap-consumer-a1Adapter-policy.properties
104 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-oofpcipoc.properties
106 subPath: dmaap-consumer-oofpcipoc.properties
108 {{ include "common.resources" . | indent 12 }}
109 {{- if .Values.nodeSelector }}
111 {{ toYaml .Values.nodeSelector | indent 10 }}
113 {{- if .Values.affinity }}
115 {{ toYaml .Values.affinity | indent 10 }}
124 name: {{ include "common.fullname" . }}
130 - name: "{{ include "common.namespace" . }}-docker-registry-key"