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" "ueb-creds" "key" "login") | indent 10 }}
43 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "ueb-creds" "key" "password") | indent 10 }}
45 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 10 }}
47 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 10 }}
49 - mountPath: /config-input
53 image: {{ include "repositoryGenerator.image.envsubst" . }}
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 name: {{ include "common.name" . }}-update-config
60 - {{ include "common.mariadbService" . }}
62 - {{ .Values.config.sdncChartName }}
64 - {{ .Values.config.sdcbeChartName }}
66 - {{ .Values.config.msgRouterContainerName }}
72 fieldPath: metadata.namespace
73 image: {{ include "repositoryGenerator.image.readiness" . }}
74 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 name: {{ include "common.name" . }}-readiness
78 - /opt/onap/sdnc/ueb-listener/bin/start-ueb-listener.sh
79 name: {{ include "common.name" . }}
80 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
81 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
84 value: "{{ .Values.config.configDir }}"
85 - name: SDNC_CONFIG_DIR
86 value: "{{ .Values.config.configDir }}"
88 - mountPath: /etc/localtime
91 - mountPath: {{ .Values.config.configDir }}/dblib.properties
93 subPath: dblib.properties
94 - mountPath: {{ .Values.config.configDir }}/ueb-listener.properties
96 subPath: ueb-listener.properties
97 resources: {{ include "common.resources" . | nindent 10 }}
98 {{- if .Values.nodeSelector }}
99 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
101 {{- if .Values.affinity }}
102 affinity: {{ toYaml .Values.affinity | nindent 8 }}
104 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
111 name: {{ include "common.fullname" . }}
117 - name: "{{ include "common.namespace" . }}-docker-registry-key"