1 {{- if .Values.testFramework.enabled }}
5 name: {{ template "mysql.fullname" . }}-test
6 namespace: {{ .Release.Namespace }}
8 app: {{ template "mysql.fullname" . }}
9 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
10 heritage: "{{ .Release.Service }}"
11 release: "{{ .Release.Name }}"
13 "helm.sh/hook": test-success
15 {{- if .Values.testFramework.securityContext }}
16 securityContext: {{ toYaml .Values.testFramework.securityContext | nindent 4 }}
18 {{- if .Values.imagePullSecrets }}
20 {{- range .Values.imagePullSecrets }}
24 {{- with .Values.nodeSelector }}
26 {{ toYaml . | indent 4 }}
28 {{- with .Values.affinity }}
30 {{ toYaml . | indent 4 }}
32 {{- with .Values.tolerations }}
34 {{ toYaml . | indent 4 }}
37 - name: {{ .Release.Name }}-test
38 image: "{{ .Values.testFramework.image }}:{{ .Values.testFramework.tag }}"
39 imagePullPolicy: "{{ .Values.testFramework.imagePullPolicy}}"
40 command: ["/opt/bats/bin/bats", "-t", "/tests/run.sh"]
45 {{- if .Values.ssl.enabled }}
52 name: {{ template "mysql.fullname" . }}-test
53 {{- if .Values.ssl.enabled }}
56 secretName: {{ .Values.ssl.secret }}