1 # Copyright © 2018 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
28 app: {{ include "common.name" . }}
29 replicas: {{ .Values.replicaCount }}
33 app: {{ include "common.name" . }}
34 release: {{ include "common.release" . }}
36 initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }}
37 - name: {{ include "common.name" . }}-readiness
48 fieldPath: metadata.namespace
49 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 {{- if .Values.global.aafEnabled }}
59 - name: {{ include "common.fullname" . }}-move-cert
65 cp {{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.keystoreFile }} /sdc-certs/{{ .Values.certInitializer.keystoreFile }}
66 cp {{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.truststoreFile }} /sdc-certs/{{ .Values.certInitializer.truststoreFile }}
67 cp {{ .Values.certInitializer.credsPath }}/mycreds.prop /sdc-certs/mycreds.prop
68 image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
69 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
70 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
82 - name: {{ include "common.name" . }}
83 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
84 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
85 {{- if .Values.global.aafEnabled }}
91 export $(grep '^c' /sdc-certs/mycreds.prop | xargs -0)
92 export KEYSTORE_PASS=$cadi_keystore_password_p12
93 export TRUSTSTORE_PASS=$cadi_truststore_password
94 export KEYSTORE_PATH=/etc/{{ .Values.certInitializer.keystoreFile }}
95 export TRUSTSTORE_PATH=/etc/{{ .Values.certInitializer.truststoreFile }}
99 - containerPort: {{ template "wfd-fe.internalPort" . }}
100 {{ if .Values.liveness.enabled }}
103 port: {{ template "wfd-fe.internalPort" . }}
104 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
105 periodSeconds: {{ .Values.liveness.periodSeconds }}
109 port: {{ template "wfd-fe.internalPort" . }}
110 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
111 periodSeconds: {{ .Values.readiness.periodSeconds }}
114 value: {{ .Values.env.name }}
116 value: {{ .Values.config.javaOptions }}
118 value: {{ .Values.config.backendServerURL }}
120 value: "{{ .Values.config.isHttpsEnabled}}"
121 {{ if and .Values.config.isHttpsEnabled (eq .Values.security.isDefaultStore false) }}
123 value: "{{ .Values.config.isTrustAll}}"
126 - name: {{ include "common.fullname" . }}-localtime
127 mountPath: /etc/localtime
129 {{- if .Values.global.aafEnabled }}
131 mountPath: /sdc-certs/mycreds.prop
132 subPath: mycreds.prop
134 mountPath: /var/lib/jetty/etc/{{ .Values.certInitializer.keystoreFile }}
135 subPath: {{ .Values.certInitializer.keystoreFile }}
137 mountPath: /var/lib/jetty/etc/{{ .Values.certInitializer.truststoreFile }}
138 subPath: {{ .Values.certInitializer.truststoreFile }}
140 resources: {{ include "common.resources" . | nindent 12 }}
141 {{- if .Values.nodeSelector }}
143 {{ toYaml .Values.nodeSelector | indent 10 }}
145 {{- if .Values.affinity }}
147 {{ toYaml .Values.affinity | indent 10 }}
149 # side car containers
150 - name: {{ include "common.name" . }}-filebeat-onap
151 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
152 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
154 - name: {{ include "common.fullname" . }}-filebeat-conf
155 mountPath: /usr/share/filebeat/filebeat.yml
156 subPath: filebeat.yml
157 - name: {{ include "common.fullname" . }}-logs
158 mountPath: /var/log/onap
159 - name: {{ include "common.fullname" . }}-data-filebeat
160 mountPath: /usr/share/filebeat/data
168 volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
169 - name: {{ include "common.fullname" . }}-localtime
172 {{- if .Values.global.aafEnabled }}
177 - name: {{ include "common.fullname" . }}-filebeat-conf
179 name: {{ include "common.release" . }}-sdc-filebeat-configmap
180 - name: {{ include "common.fullname" . }}-data-filebeat
182 - name: {{ include "common.fullname" . }}-logs
185 - name: "{{ include "common.namespace" . }}-docker-registry-key"