[stable/sonarqube] added parameter for custom mysql parameters (#7925)

Signed-off-by: Raza Jhaveri <razajhaveri@googlemail.com>
This commit is contained in:
Raza Jhaveri
2018-09-28 07:19:32 -07:00
committed by k8s-ci-robot
parent b430bbf92c
commit 85c03800b9
4 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: sonarqube
description: Sonarqube is an open sourced code quality scanning tool
version: 0.9.1
version: 0.10.1
appVersion: 6.7.3
keywords:
- coverage
+1
View File
@@ -65,6 +65,7 @@ The following table lists the configurable parameters of the Sonarqube chart and
| `mysql.mysqlUser` | Mysql database user | `sonarUser` |
| `mysql.mysqlPassword` | Mysql database password | `sonarPass` |
| `mysql.mysqlDatabase` | Mysql database name | `sonarDB` |
| `mysql.mysqlParams` | Mysql parameters for JDBC connection string | `{}` |
| `mysql.service.port` | Mysql port | `3306` |
| `resources` | Sonarqube Pod resource requests & limits | `{}` |
| `affinity` | Node / Pod affinities | `{}` |
+1 -1
View File
@@ -101,7 +101,7 @@ spec:
{{- if eq .Values.database.type "postgresql" }}
value: "jdbc:postgresql://{{ template "postgresql.hostname" . }}:{{- .Values.postgresql.service.port -}}/{{- .Values.postgresql.postgresDatabase -}}"
{{- else if eq .Values.database.type "mysql" }}
value: "jdbc:mysql://{{ template "mysql.hostname" . }}:{{ .Values.mysql.service.port }}/{{ .Values.mysql.mysqlDatabase }}?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true"
value: "jdbc:mysql://{{ template "mysql.hostname" . }}:{{ .Values.mysql.service.port }}/{{ .Values.mysql.mysqlDatabase }}?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true{{- range $key, $value := .Values.mysql.mysqlParams }}&{{ $key }}={{ $value }}{{- end }}"
{{- end }}
livenessProbe:
httpGet:
+2
View File
@@ -139,6 +139,8 @@ mysql:
mysqlUser: "sonarUser"
mysqlPassword: "sonarPass"
mysqlDatabase: "sonarDB"
# mysqlParams:
# useSSL: "true"
# Specify the TCP port that mySQL should use
service:
port: 3306