2 # Copyright © 2017 Amdocs, AT&T, Bell Canada
3 # Modifications Copyright © 2018 ZTE
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
31 app: {{ include "common.name" . }}
32 replicas: {{ .Values.replicaCount }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
39 initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }}
40 {{- if .Values.initJob.enabled }}
41 - name: {{ include "common.name" . }}-job-completion
42 image: {{ include "repositoryGenerator.image.readiness" . }}
43 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
48 - {{ include "common.fullname" . }}-workflow-init
54 fieldPath: metadata.namespace
64 - name: {{ include "common.name" . }}
65 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 {{- if .Values.global.aafEnabled }}
73 export $(grep '^c' {{ .Values.certInitializer.credsPath }}/mycreds.prop | xargs -0)
74 export SERVER_SSL_KEY_PASSWORD=$cadi_keystore_password_p12
75 export KEYMANAGER_PASS=$cadi_keystore_password_p12
76 export SERVER_SSL_TRUST_PASSWORD=$cadi_truststore_password
77 export SERVER_SSL_KEYSTORE_PATH={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.keystoreFile }}
78 export SERVER_SSL_TRUSTSTORE_PATH={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.truststoreFile }}
82 - containerPort: {{ template "wfd-be.internalPort" . }}
83 # disable liveness probe when breakpoints set in debugger
84 # so K8s doesn't restart unresponsive container
85 {{ if .Values.liveness.enabled }}
88 port: {{ template "wfd-be.internalPort" . }}
89 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
90 periodSeconds: {{ .Values.liveness.periodSeconds }}
94 port: {{ template "wfd-be.internalPort" . }}
95 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
96 periodSeconds: {{ .Values.readiness.periodSeconds }}
99 value: {{ .Values.config.javaOptions }}
101 value: "{{ .Values.global.cassandra.serviceName }}"
103 value: "{{ .Values.config.cassandraClientPort }}"
104 - name: CS_AUTHENTICATE
105 value: "{{ .Values.config.cassandraAuthenticationEnabled }}"
108 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: sdc_user}
111 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: sdc_password}
112 - name: CS_SSL_ENABLED
113 value: "{{ .Values.config.cassandraSSLEnabled }}"
114 - name: CS_TRUST_STORE_PATH
115 value: "{{ .Values.config.cassandraTrustStorePath }}"
116 - name: CS_TRUST_STORE_PASSWORD
118 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: cs_truststore_password}
120 value: "{{ .Values.config.sdcProtocol }}"
122 value: "{{ .Values.config.sdcEndpoint }}"
124 value: "{{ .Values.config.sdcExternalUser }}"
127 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: wf_external_user_password}
128 - name: SERVER_SSL_ENABLED
129 value: "{{ .Values.config.serverSSLEnabled }}"
130 - name: SERVER_SSL_KEYSTORE_TYPE
131 value: "{{ .Values.config.serverSSLKeyStoreType }}"
132 - name: SERVER_SSL_TRUSTSTORE_TYPE
133 value: "{{ .Values.config.serverSSLTrustStoreType }}"
134 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
135 resources: {{ include "common.resources" . | nindent 12 }}
136 volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
138 - name: "{{ include "common.namespace" . }}-docker-registry-key"