1 # Copyright (C) 2018 AT&T Intellectual Property.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ include "common.release" . }}
34 {{- if .Values.global.mariadbGalera.localCluster }}
39 - {{ index .Values "mariadb-galera" "nameOverride" }}
42 - /root/job_complete.py
45 - {{ include "common.release" . }}-{{ index .Values "mariadb-init" "nameOverride" }}-config-job
52 fieldPath: metadata.namespace
53 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 name: {{ include "common.name" . }}-readiness
57 - name: {{ include "common.name" . }}
58 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 - name: SPRING_PROFILE
62 value: "{{ .Values.config.springProfile }}"
64 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "neng-db-secret" "key" "login") | indent 10}}
66 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "neng-db-secret" "key" "password") | indent 10}}
68 value: jdbc:mysql://{{ include "common.mariadbService" . }}:{{ include "common.mariadbPort" . }}/{{ index .Values "mariadb-galera" "config" "mysqlDatabase" }}
69 - name: POL_CLIENT_AUTH
70 value: "{{ .Values.config.polClientAuth }}"
71 - name: POL_BASIC_AUTH
72 value: "{{ .Values.config.polBasicAuth }}"
74 value: "{{ .Values.config.polUrl }}"
76 value: "{{ .Values.config.polEnv }}"
78 value: "{{ .Values.config.polReqId }}"
80 value: "{{ .Values.config.aaiCertPass }}"
82 value: "{{ .Values.config.aaiCertPath }}"
84 value: "{{ .Values.config.aaiUri }}"
86 value: "{{ .Values.config.aaiAuth }}"
89 mountPath: /opt/etc/config/aai_keystore
93 {{ include "common.resources" . | indent 12 }}
94 {{- if .Values.nodeSelector }}
96 {{ toYaml .Values.nodeSelector | indent 10 }}
98 {{- if .Values.affinity }}
100 {{ toYaml .Values.affinity | indent 10 }}
105 secretName: {{ include "common.release" . }}-aai-keystore
107 - name: "{{ include "common.namespace" . }}-docker-registry-key"