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" "ueb-creds" "key" "login") | indent 10 }}
49 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "ueb-creds" "key" "password") | indent 10 }}
51 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 10 }}
53 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "password") | indent 10 }}
55 - mountPath: /config-input
59 image: "{{ .Values.global.envsubstImage }}"
60 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 name: {{ include "common.name" . }}-update-config
66 - {{ include "common.mariadbService" . }}
68 - {{ .Values.config.sdncChartName }}
70 - {{ .Values.config.sdcbeChartName }}
72 - {{ .Values.config.msgRouterContainerName }}
78 fieldPath: metadata.namespace
79 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 name: {{ include "common.name" . }}-readiness
84 - /opt/onap/sdnc/ueb-listener/bin/start-ueb-listener.sh
85 name: {{ include "common.name" . }}
86 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
87 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
90 value: "{{ .Values.config.configDir }}"
91 - name: SDNC_CONFIG_DIR
92 value: "{{ .Values.config.configDir }}"
94 - mountPath: /etc/localtime
97 - mountPath: {{ .Values.config.configDir }}/dblib.properties
99 subPath: dblib.properties
100 - mountPath: {{ .Values.config.configDir }}/ueb-listener.properties
102 subPath: ueb-listener.properties
104 {{ include "common.resources" . | indent 12 }}
105 {{- if .Values.nodeSelector }}
107 {{ toYaml .Values.nodeSelector | indent 10 }}
109 {{- if .Values.affinity }}
111 {{ toYaml .Values.affinity | indent 10 }}
120 name: {{ include "common.fullname" . }}
126 - name: "{{ include "common.namespace" . }}-docker-registry-key"