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.
16 apiVersion: extensions/v1beta1
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 }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ include "common.release" . }}
39 - "cd /config-input && for PFILE in `find . -not -type d | grep -v -F ..`; do envsubst <${PFILE} >/config/${PFILE}; chmod 0755 /config/${PFILE}; done"
42 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
44 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
45 - name: PDP_HTTP_USER_ID
46 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "login") | indent 10 }}
47 - name: PDP_HTTP_PASSWORD
48 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "password") | indent 10 }}
49 - name: PDP_PAP_PDP_HTTP_USER_ID
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "login") | indent 10 }}
51 - name: PDP_PAP_PDP_HTTP_PASSWORD
52 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "password") | indent 10 }}
53 - name: REPOSITORY_USERNAME
54 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "login") | indent 10 }}
55 - name: REPOSITORY_PASSWORD
56 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "password") | indent 10 }}
58 - mountPath: /config-input/pe
60 - mountPath: /config-input/pe-brmsgw
62 - mountPath: /config/pe
64 - mountPath: /config/pe-brmsgw
66 image: "{{ .Values.global.envsubstImage }}"
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 name: {{ include "common.name" . }}-update-config
73 - {{ .Values.global.pap.nameOverride }}
79 fieldPath: metadata.namespace
80 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
81 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
82 name: {{ include "common.name" . }}-readiness
88 name: {{ include "common.name" . }}
89 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
90 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
93 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
95 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
96 - name: PDP_HTTP_USER_ID
97 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "login") | indent 10 }}
98 - name: PDP_HTTP_PASSWORD
99 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "password") | indent 10 }}
100 - name: PDP_PAP_PDP_HTTP_USER_ID
101 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "login") | indent 10 }}
102 - name: PDP_PAP_PDP_HTTP_PASSWORD
103 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "password") | indent 10 }}
104 - name: REPOSITORY_USERNAME
105 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "login") | indent 10 }}
106 - name: REPOSITORY_PASSWORD
107 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "password") | indent 10 }}
109 - containerPort: {{ .Values.service.externalPort }}
110 {{- if eq .Values.liveness.enabled true }}
113 port: {{ .Values.service.externalPort }}
114 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
115 periodSeconds: {{ .Values.liveness.periodSeconds }}
119 port: {{ .Values.service.externalPort }}
120 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
121 periodSeconds: {{ .Values.readiness.periodSeconds }}
123 - mountPath: /etc/localtime
126 - mountPath: /tmp/policy-install/config/brmsgw-tweaks.sh
128 subPath: brmsgw-tweaks.sh
129 - mountPath: /tmp/policy-install/config/brmsgw.conf
132 - mountPath: /tmp/policy-install/config/base.conf
135 - mountPath: /tmp/policy-install/do-start.sh
139 {{ include "common.resources" . | indent 12 }}
140 {{- if .Values.nodeSelector }}
142 {{ toYaml .Values.nodeSelector | indent 10 }}
144 {{- if .Values.affinity }}
146 {{ toYaml .Values.affinity | indent 10 }}
154 name: {{ include "common.release" . }}-pe-configmap
158 name: {{ include "common.release" . }}-pe-scripts-configmap
160 - name: pe-brmsgw-input
162 name: {{ include "common.fullname" . }}-pe-configmap
171 - name: "{{ include "common.namespace" . }}-docker-registry-key"