2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications © 2023 Deutsche Telekom
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.
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
23 replicas: {{ .Values.replicaCount }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
32 - "cd /config-input && for PFILE in `find . -not -type d | grep -v -F ..`; do envsubst <${PFILE} >/config/${PFILE}; done"
35 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "login") | indent 10 }}
37 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "password") | indent 10 }}
39 - mountPath: /config-input
43 image: {{ include "repositoryGenerator.image.envsubst" . }}
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
45 name: {{ include "common.name" . }}-update-config
46 {{ include "common.readinessCheck.waitFor" . | nindent 6 }}
48 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 name: {{ include "common.name" . }}
51 ports: {{ include "common.containerPorts" . | nindent 8 }}
52 resources: {{ include "common.resources" . | nindent 10 }}
54 - mountPath: /service/webapps/ROOT/WEB-INF/classes/mybatis/configuration/configuration.xml
56 subPath: configuration.xml
57 - mountPath: /etc/nginx/nginx.conf
62 port: {{ .Values.service.internalPort }}
63 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
64 periodSeconds: {{ .Values.readiness.periodSeconds }}
65 {{- include "common.imagePullSecrets" . | nindent 6 }}
67 - name: init-data-input
69 name: {{ include "common.fullname" . }}
72 name: {{ include "common.fullname" . }}-nginx