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 }}
21 replicas: {{ .Values.replicaCount }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
31 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
34 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
35 - name: SDNC_DB_PASSWORD
36 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
38 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 10 }}
40 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 10 }}
42 - mountPath: /config-input
46 image: {{ include "repositoryGenerator.image.envsubst" . }}
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 name: {{ include "common.name" . }}-update-config
54 - {{ include "common.mariadbAppName" . }}
56 - {{ .Values.config.sdncChartName }}
58 - {{ .Values.config.msgRouterContainerName }}
64 fieldPath: metadata.namespace
65 image: {{ include "repositoryGenerator.image.readiness" . }}
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 name: {{ include "common.name" . }}-readiness
77 - /opt/onap/sdnc/dmaap-listener/bin/start-dmaap-listener.sh
78 name: {{ include "common.name" . }}
79 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
83 value: "{{ .Values.config.configDir }}"
84 - name: SDNC_CONFIG_DIR
85 value: "{{ .Values.config.configDir }}"
86 - name: LOG4J_FORMAT_MSG_NO_LOOKUPS
89 - mountPath: /etc/localtime
92 - mountPath: {{ .Values.config.configDir }}/dblib.properties
94 subPath: dblib.properties
95 - mountPath: {{ .Values.config.configDir }}/dhcpalert.properties
97 subPath: dhcpalert.properties
98 - mountPath: {{ .Values.config.configDir }}/lcm.properties
100 subPath: lcm.properties
101 - mountPath: {{ .Values.config.configDir }}/aai.properties
103 subPath: aai.properties
104 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-CMNotify.properties
106 subPath: dmaap-consumer-CMNotify.properties
107 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-a1Adapter-policy.properties
109 subPath: dmaap-consumer-a1Adapter-policy.properties
110 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-oofpcipoc.properties
112 subPath: dmaap-consumer-oofpcipoc.properties
113 - mountPath: {{ .Values.config.configDir }}/dmaap-consumer-RANSlice.properties
115 subPath: dmaap-consumer-RANSlice.properties
116 resources: {{ include "common.resources" . | nindent 10 }}
117 ports: {{ include "common.containerPorts" . | nindent 10 }}
118 {{- if .Values.nodeSelector }}
119 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
121 {{- if .Values.affinity }}
122 affinity: {{ toYaml .Values.affinity | nindent 8 }}
124 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
131 name: {{ include "common.fullname" . }}
137 - name: "{{ include "common.namespace" . }}-docker-registry-key"