You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-configmap.yaml 949 B

1234567891011121314151617181920212223
  1. {{- if .Values.testFramework.enabled }}
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: {{ template "mysql.fullname" . }}-test
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. app: {{ template "mysql.fullname" . }}
  9. chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
  10. heritage: "{{ .Release.Service }}"
  11. release: "{{ .Release.Name }}"
  12. data:
  13. run.sh: |-
  14. {{- if .Values.ssl.enabled | and .Values.mysqlRootPassword }}
  15. @test "Testing SSL MySQL Connection" {
  16. mysql --host={{ template "mysql.fullname" . }} --port={{ .Values.service.port | default "3306" }} --ssl-cert=/ssl/server-cert.pem --ssl-key=ssl/server-key.pem -u root -p{{ .Values.mysqlRootPassword }}
  17. }
  18. {{- else if .Values.mysqlRootPassword }}
  19. @test "Testing MySQL Connection" {
  20. mysql --host={{ template "mysql.fullname" . }} --port={{ .Values.service.port | default "3306" }} -u root -p{{ .Values.mysqlRootPassword }}
  21. }
  22. {{- end }}
  23. {{- end }}