1 # Copyright © 2018 Amdocs, Bell Canada
2 # Modifications Copyright © 2020 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.
19 name: {{ include "common.release" . }}-policy-galera-config
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}-job
23 release: {{ include "common.release" . }}
28 app: {{ include "common.name" . }}-job
29 release: {{ include "common.release" . }}
32 #This container checks that all galera instances are up before initializing it.
33 - name: {{ include "common.name" . }}-readiness
34 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
35 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
39 - {{ index .Values "mariadb-galera" "service" "name" }}
45 fieldPath: metadata.namespace
47 - name: {{ include "common.release" . }}-policy-galera-config
48 image: {{ .Values.mariadb_image }}
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 - mountPath: /dbcmd-config/db.sh
52 name: {{ include "common.fullname" . }}-config
60 - name: MYSQL_ROOT_PASSWORD
61 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-root-password" "key" "password") | indent 10 }}
63 value: "{{ index .Values "mariadb-galera" "service" "name" }}"
65 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
67 value: "{{ index .Values "mariadb-galera" "service" "internalPort" }}"
70 - name: {{ include "common.fullname" . }}-config
72 name: {{ include "common.fullname" . }}-db-configmap