1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
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 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
29 app: {{ include "common.name" . }}
30 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
42 - "cd /config-input && for PFILE in `find . -not -type d | grep -v -F ..`; do envsubst <${PFILE} >/config/${PFILE}; chmod 0755 /config/${PFILE}; done"
45 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
47 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
48 - name: PDP_HTTP_USER_ID
49 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "login") | indent 10 }}
50 - name: PDP_HTTP_PASSWORD
51 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "password") | indent 10 }}
52 - name: PDP_PAP_PDP_HTTP_USER_ID
53 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "login") | indent 10 }}
54 - name: PDP_PAP_PDP_HTTP_PASSWORD
55 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "password") | indent 10 }}
56 - name: REPOSITORY_USERNAME
57 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "login") | indent 10 }}
58 - name: REPOSITORY_PASSWORD
59 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "password") | indent 10 }}
61 - mountPath: /config-input/pe
63 - mountPath: /config-input/pe-brmsgw
65 - mountPath: /config/pe
67 - mountPath: /config/pe-brmsgw
69 image: "{{ .Values.global.envsubstImage }}"
70 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
71 name: {{ include "common.name" . }}-update-config
76 - {{ .Values.global.pap.nameOverride }}
82 fieldPath: metadata.namespace
83 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
84 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
85 name: {{ include "common.name" . }}-readiness
91 name: {{ include "common.name" . }}
92 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
93 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
96 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
98 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
99 - name: PDP_HTTP_USER_ID
100 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "login") | indent 10 }}
101 - name: PDP_HTTP_PASSWORD
102 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "password") | indent 10 }}
103 - name: PDP_PAP_PDP_HTTP_USER_ID
104 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "login") | indent 10 }}
105 - name: PDP_PAP_PDP_HTTP_PASSWORD
106 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "password") | indent 10 }}
107 - name: REPOSITORY_USERNAME
108 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "login") | indent 10 }}
109 - name: REPOSITORY_PASSWORD
110 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "password") | indent 10 }}
112 - containerPort: {{ .Values.service.externalPort }}
113 {{- if eq .Values.liveness.enabled true }}
116 port: {{ .Values.service.externalPort }}
117 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
118 periodSeconds: {{ .Values.liveness.periodSeconds }}
122 port: {{ .Values.service.externalPort }}
123 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
124 periodSeconds: {{ .Values.readiness.periodSeconds }}
126 - mountPath: /etc/localtime
129 - mountPath: /tmp/policy-install/config/brmsgw-tweaks.sh
131 subPath: brmsgw-tweaks.sh
132 - mountPath: /tmp/policy-install/config/brmsgw.conf
135 - mountPath: /tmp/policy-install/config/base.conf
138 - mountPath: /tmp/policy-install/do-start.sh
142 {{ include "common.resources" . | indent 12 }}
143 {{- if .Values.nodeSelector }}
145 {{ toYaml .Values.nodeSelector | indent 10 }}
147 {{- if .Values.affinity }}
149 {{ toYaml .Values.affinity | indent 10 }}
157 name: {{ include "common.release" . }}-pe-configmap
161 name: {{ include "common.release" . }}-pe-scripts-configmap
163 - name: pe-brmsgw-input
165 name: {{ include "common.fullname" . }}-pe-configmap
174 - name: "{{ include "common.namespace" . }}-docker-registry-key"