1 # Copyright © 2017 Amdocs, Bell Canada
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: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
35 - name: {{ include "common.name" . }}-inject-testlab-project
40 git clone -b {{ .Values.config.gerritBranch }} --single-branch {{ .Values.config.gerritProject }} /tmp/gerrit;
41 echo "Clone complete. Copying from /tmp/gerrit/volumes/mariadb/docker-entrypoint-initdb.d to /docker-entrypoint-initdb.d";
42 cp -rf /tmp/gerrit/volumes/mariadb/docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d;
44 image: "{{ .Values.global.ubuntuInitRepository }}/{{ .Values.ubuntuInitImage }}"
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 - name: docker-entrypoint-initdb-d
48 mountPath: "/docker-entrypoint-initdb.d"
50 - name: {{ include "common.name" . }}
51 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 - containerPort: {{ .Values.service.internalPort }}
55 {{ if eq .Values.liveness.enabled true }}
58 port: {{ .Values.service.internalPort }}
59 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
60 periodSeconds: {{ .Values.liveness.periodSeconds }}
64 port: {{ .Values.service.internalPort }}
65 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.readiness.periodSeconds }}
68 - name: MYSQL_ROOT_PASSWORD
71 name: {{ template "common.fullname" . }}
74 - mountPath: /var/lib/mysql
76 - mountPath: /etc/localtime
79 - mountPath: /etc/mysql/conf.d
81 - name: docker-entrypoint-initdb-d
82 mountPath: "/docker-entrypoint-initdb.d"
84 {{ toYaml .Values.resources | indent 12 }}
85 {{- if .Values.nodeSelector }}
87 {{ toYaml .Values.nodeSelector | indent 10 }}
89 {{- if .Values.affinity }}
91 {{ toYaml .Values.affinity | indent 10 }}
95 {{- if .Values.persistence.enabled }}
96 persistentVolumeClaim:
97 claimName: {{ include "common.fullname" . }}
103 name: confd-configmap
107 - name: docker-entrypoint-initdb-d
110 - name: "{{ include "common.namespace" . }}-docker-registry-key"