2 # Copyright (C) 2018 AT&T Intellectual Property.
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.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
39 - name: {{ include "common.name" . }}-readiness
43 {{- if .Values.global.mariadbGalera.localCluster }}
45 - {{ index .Values "mariadb-galera" "nameOverride" }}
48 - {{ include "common.release" . }}-{{ index .Values "mariadb-init" "nameOverride" }}-config-job
55 fieldPath: metadata.namespace
56 image: {{ include "repositoryGenerator.image.readiness" . }}
57 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 - name: {{ include "common.name" . }}
64 - 'export POL_BASIC_AUTH=`echo -n $POL_BASIC_AUTH_USER:$POL_BASIC_AUTH_PASSWORD | base64`; /startService.sh'
65 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 - name: SPRING_PROFILE
69 value: "{{ .Values.config.springProfile }}"
71 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "neng-db-secret" "key" "login") | indent 10}}
73 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "neng-db-secret" "key" "password") | indent 10}}
75 value: jdbc:mysql://{{ include "common.mariadbService" . }}:{{ include "common.mariadbPort" . }}/{{ index .Values "mariadb-galera" "config" "mysqlDatabase" }}
76 - name: POL_CLIENT_AUTH
77 value: "{{ .Values.config.polClientAuth }}"
78 - name: POL_BASIC_AUTH_USER
79 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "login") | indent 10}}
80 - name: POL_BASIC_AUTH_PASSWORD
81 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "password") | indent 10}}
83 value: "{{ .Values.config.polUrl }}"
85 value: "{{ .Values.config.polEnv }}"
87 value: "{{ .Values.config.polReqId }}"
89 value: "{{ .Values.config.aaiCertPass }}"
91 value: "{{ .Values.config.aaiCertPath }}"
93 value: "{{ .Values.config.aaiUri }}"
95 value: "{{ .Values.config.aaiAuth }}"
98 mountPath: /opt/etc/config/aai_keystore
102 {{ include "common.resources" . | indent 12 }}
103 {{- if .Values.nodeSelector }}
105 {{ toYaml .Values.nodeSelector | indent 10 }}
107 {{- if .Values.affinity }}
109 {{ toYaml .Values.affinity | indent 10 }}
114 secretName: {{ include "common.release" . }}-aai-keystore
116 - name: "{{ include "common.namespace" . }}-docker-registry-key"