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.
17 apiVersion: extensions/v1beta1
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 }}
28 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
33 release: {{ include "common.release" . }}
40 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
43 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
44 - name: SDNC_DB_PASSWORD
45 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
47 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 10 }}
49 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 10 }}
51 - mountPath: /config-input
55 image: "{{ .Values.global.envsubstImage }}"
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 name: {{ include "common.name" . }}-update-config
63 - {{ include "common.mariadbService" . }}
65 - {{ .Values.config.sdncChartName }}
67 - {{ .Values.config.msgRouterContainerName }}
73 fieldPath: metadata.namespace
74 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
75 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
76 name: {{ include "common.name" . }}-readiness
79 - /opt/onap/sdnc/dmaap-listener/bin/start-dmaap-listener.sh
80 name: {{ include "common.name" . }}
81 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
82 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
85 value: "{{ .Values.config.configDir }}"
86 - name: SDNC_CONFIG_DIR
87 value: "{{ .Values.config.configDir }}"
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
114 {{ include "common.resources" . | indent 12 }}
115 {{- if .Values.nodeSelector }}
117 {{ toYaml .Values.nodeSelector | indent 10 }}
119 {{- if .Values.affinity }}
121 {{ toYaml .Values.affinity | indent 10 }}
130 name: {{ include "common.fullname" . }}
136 - name: "{{ include "common.namespace" . }}-docker-registry-key"