2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T
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" . }}
40 - name: {{ include "common.name" . }}-readiness
41 image: {{ include "repositoryGenerator.image.readiness" . }}
42 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 fieldPath: metadata.namespace
54 - name: {{ include "common.name" . }}-portal-widget-config
55 image: {{ include "repositoryGenerator.image.envsubst" . }}
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
63 for PFILE in `ls -1 *.*`
65 envsubst <${PFILE} >/config/${PFILE}
66 chmod 0755 /config/${PFILE}
69 - name: PORTAL_DB_USER
70 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "portal-backend-db" "key" "login") | indent 12 }}
71 - name: PORTAL_DB_PASSWORD
72 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "portal-backend-db" "key" "password") | indent 12 }}
74 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "portal-widget" "key" "login") | indent 12 }}
75 - name: WIDGET_PASSWORD
76 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "portal-widget" "key" "password") | indent 12 }}
78 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "portal-account" "key" "login") | indent 12 }}
80 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "portal-account" "key" "password") | indent 12 }}
81 - name: JASYPT_ENC_KEY
82 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "jasypt-enc-key" "key" "password") | indent 12 }}
84 - mountPath: /config-input
85 name: properties-onapwidgetms-scrubbed
87 name: properties-onapwidgetms
89 - name: {{ include "common.name" . }}
90 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
91 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
95 - containerPort: {{ .Values.service.internalPort }}
96 {{- if eq .Values.liveness.enabled true }}
99 port: {{ .Values.service.internalPort }}
100 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
101 periodSeconds: {{ .Values.liveness.periodSeconds }}
105 port: {{ .Values.service.internalPort }}
106 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
107 periodSeconds: {{ .Values.readiness.periodSeconds }}
109 - mountPath: /etc/localtime
112 - name: properties-onapwidgetms
113 mountPath: "/application.properties"
114 subPath: application.properties
115 - name: properties-onapwidgetms
116 mountPath: "/application.yml"
117 subPath: application.yml
119 {{ include "common.resources" . | indent 12 }}
120 {{- if .Values.nodeSelector }}
122 {{ toYaml .Values.nodeSelector | indent 10 }}
124 {{- if .Values.affinity }}
126 {{ toYaml .Values.affinity | indent 10 }}
132 - name: properties-onapwidgetms
135 - name: properties-onapwidgetms-scrubbed
137 name: {{ include "common.fullname" . }}-onapwidgetms
140 - name: "{{ include "common.namespace" . }}-docker-registry-key"