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 `ls -1 *.conf`; do envsubst <${PFILE} >/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 }}
59 - mountPath: /config-input
63 image: "{{ .Values.global.envsubstImage }}"
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 name: {{ include "common.name" . }}-update-config
70 - {{ .Values.global.pap.nameOverride }}
76 fieldPath: metadata.namespace
77 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
78 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 name: {{ include "common.name" . }}-readiness
85 name: {{ include "common.name" . }}
86 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
87 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
90 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
92 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
93 - name: PDP_HTTP_USER_ID
94 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "login") | indent 10 }}
95 - name: PDP_HTTP_PASSWORD
96 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pdp-http-creds" "key" "password") | indent 10 }}
97 - name: PDP_PAP_PDP_HTTP_USER_ID
98 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "login") | indent 10 }}
99 - name: PDP_PAP_PDP_HTTP_PASSWORD
100 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pap-http-creds" "key" "password") | indent 10 }}
101 - name: REPOSITORY_USERNAME
102 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "login") | indent 10 }}
103 - name: REPOSITORY_PASSWORD
104 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nexus-creds" "key" "password") | indent 10 }}
107 - containerPort: {{ .Values.service.externalPort }}
108 {{- if eq .Values.liveness.enabled true }}
111 port: {{ .Values.service.externalPort }}
112 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
113 periodSeconds: {{ .Values.liveness.periodSeconds }}
117 port: {{ .Values.service.externalPort }}
118 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
119 periodSeconds: {{ .Values.readiness.periodSeconds }}
121 - mountPath: /etc/localtime
124 - mountPath: /tmp/policy-install/config/brmsgw-tweaks.sh
126 subPath: brmsgw-tweaks.sh
127 - mountPath: /tmp/policy-install/config/brmsgw.conf
130 - mountPath: /tmp/policy-install/config/base.conf
133 - mountPath: /tmp/policy-install/do-start.sh
137 {{ include "common.resources" . | indent 12 }}
138 {{- if .Values.nodeSelector }}
140 {{ toYaml .Values.nodeSelector | indent 10 }}
142 {{- if .Values.affinity }}
144 {{ toYaml .Values.affinity | indent 10 }}
152 name: {{ include "common.release" . }}-pe-configmap
156 name: {{ include "common.release" . }}-pe-scripts-configmap
160 name: {{ include "common.fullname" . }}-pe-configmap
166 - name: "{{ include "common.namespace" . }}-docker-registry-key"