1 # Copyright © 2019 Orange
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.
18 name: {{ include "common.fullname" . }}-config-job
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
32 name: {{ include "common.name" . }}
35 - name: {{ include "common.name" . }}-readiness
40 - {{ .Values.global.mariadbGalera.nameOverride }}
46 fieldPath: metadata.namespace
47 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - name: {{ include "common.name" . }}
51 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 value: "{{ .Values.global.mariadbGalera.nameOverride }}"
60 value: "{{ .Values.global.mariadbGalera.servicePort }}"
61 - name: MYSQL_ROOT_PASSWORD
64 name: {{ include "mariadbInit.mariadbClusterSecret" . }}
65 key: {{ .Values.global.mariadbGalera.userRootSecretKey }}
66 - name: MYSQL_PASSWORD
69 name: {{ template "common.fullname" . }}
72 {{ range $db, $_value := .Values.config.mysqlAdditionalDatabases }}
73 - name: {{ printf "MYSQL_PASSWORD_%s" $db | upper }}
76 name: {{ template "common.fullname" $root }}-secret
77 key: {{ printf "db-%s-user-password" $db }}
80 - mountPath: /etc/localtime
87 {{ include "common.resources" . | indent 12 }}
88 {{- if .Values.nodeSelector }}
90 {{ toYaml .Values.nodeSelector | indent 10 }}
92 {{- if .Values.affinity }}
94 {{ toYaml .Values.affinity | indent 10 }}
99 name: {{ include "mariadbInit.configMap" . }}
105 - name: "{{ include "common.namespace" . }}-docker-registry-key"