[stable/sonarqube] Add MySQL database support to Sonarqube #5803
Conversation
…ow has an option to store data in MySQL database too, It already had a support to store the data in Postgres. A given release could now have either Postgres database (internal / external) or MySQL database (internal / external).
Updated README.md to add configuration changes that come with MySQL database support.
stable/sonarqube/Chart.yaml
Outdated
@@ -1,6 +1,6 @@ | |||
name: sonarqube | |||
description: Sonarqube is an open sourced code quality scanning tool | |||
version: 0.6.0 | |||
version: 0.6.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please bump the minor version since this adds a new feature
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
heritage: {{ .Release.Service }} | ||
type: Opaque | ||
data: | ||
postgres-password: {{ .Values.mysql.mysqlPassword | b64enc | quote }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Key should be mysql-password
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah my bad , this is a blunder .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -12,3 +12,18 @@ type: Opaque | |||
data: | |||
postgres-password: {{ .Values.postgresql.postgresPassword | b64enc | quote }} | |||
{{- end -}} | |||
{{- if eq .Values.mysql.enabled false -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also only need this if the database type is mysql. Same with the postgres secret above only is needed is database is postgres and postgres is disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the check , thanks for pointing out
1. Bumped the minor version of the chart since it's a feature release 2. Added check for database type while populating secrets 3. Corrected mysql key
/ok-to-test |
I am going to try and test out the different combinations this afternoon before I merge it. Thanks for the quick turnaround on the changes! |
Sure, let me know if you find any issues . Thanks !! |
/assign |
@rjkernick Can we go ahead with merging . |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: irajdeep, rjkernick The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Added MySQL database support to Sonarqube, the Sonarqube helm chart now has an option to store data in MySQL database too, It already had a support to store the data in Postgres. A given release could now have either Postgres database (internal / external) or MySQL database (internal / external). * Updated README.md Updated README.md to add configuration changes that come with MySQL database support. * Removing white spaces to get rid of helm lint errors * Yes another attempt to remove trailing spaces :( * Fixing PR comments 1. Bumped the minor version of the chart since it's a feature release 2. Added check for database type while populating secrets 3. Corrected mysql key
* Added MySQL database support to Sonarqube, the Sonarqube helm chart now has an option to store data in MySQL database too, It already had a support to store the data in Postgres. A given release could now have either Postgres database (internal / external) or MySQL database (internal / external). * Updated README.md Updated README.md to add configuration changes that come with MySQL database support. * Removing white spaces to get rid of helm lint errors * Yes another attempt to remove trailing spaces :( * Fixing PR comments 1. Bumped the minor version of the chart since it's a feature release 2. Added check for database type while populating secrets 3. Corrected mysql key Signed-off-by: voron <av@arilot.com>
In the sonarqube 7.1 version, mysql support was |
What this PR does / why we need it:
This PR adds
MySQL
database support to Sonarqube. Currently Sonarqube has onlyPostgresql
support to store the data. It has the relevant changes to the template files and README.md for the new MySQL database supportWhich issue this PR fixes *
fixes #5654
Special notes for your reviewer:
/assign
@rjkernick