Skip to content

Commit 72e52bb

Browse files
author
Fiehe Christoph
committed
feat: allow to add lifecycle hooks to the SonarQube container
Signed-off-by: Fiehe Christoph <[email protected]>
1 parent ec6da0d commit 72e52bb

File tree

10 files changed

+25
-2
lines changed

10 files changed

+25
-2
lines changed

charts/sonarqube-dce/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# SonarQube Chart Changelog
22
All changes to this chart will be documented in this file.
33

4+
## [2025.7.0]
5+
* Update Chart's version to 2025.7.0
6+
* Support lifecycle hooks on the SonarQube container
7+
48
## [2025.6.0]
59
* Update Chart's version to 2025.6.0
610

charts/sonarqube-dce/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: sonarqube-dce
33
description: SonarQube is a self-managed, automatic code review tool that systematically helps you deliver clean code. As a core element of our Sonar solution, SonarQube integrates into your existing workflow and detects issues in your code to help you perform continuous code inspections of your projects. The tool analyses 30+ different programming languages and integrates into your CI pipeline and DevOps platform to ensure that your code meets high-quality standards.
44
type: application
5-
version: 2025.6.0
5+
version: 2025.7.0
66
appVersion: 2025.5.0
77
keywords:
88
- coverage

charts/sonarqube-dce/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,8 @@ The following table lists the configurable parameters of the SonarQube chart and
455455
| `applicationNodes.port` | The Hazelcast port for communication with each application member of the cluster. | `9003` |
456456
| `applicationNodes.webPort` | The Hazelcast port for communication with the WebServer process. If not specified, a dynamic port will be chosen. | `` |
457457
| `applicationNodes.cePort` | The Hazelcast port for communication with the ComputeEngine process. If not specified, a dynamic port will be chosen | `` |
458+
| `applicationNodes.lifecycle` | Lifecycle hooks to add to the SonarQube container | `{}` |
459+
458460
459461
### Generic Configuration
460462

charts/sonarqube-dce/templates/sonarqube-application.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ spec:
400400
{{- with .Values.ApplicationNodes.extraVolumeMounts -}}
401401
{{- toYaml . | nindent 12 }}
402402
{{- end }}
403+
{{- with .Values.ApplicationNodes.lifecycle }}
404+
lifecycle: {{- toYaml . | nindent 12 }}
405+
{{- end }}
403406
{{- if .Values.priorityClassName }}
404407
priorityClassName: {{ .Values.priorityClassName }}
405408
{{- end }}

charts/sonarqube-dce/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ applicationNodes:
380380
extraVolumes: []
381381
extraVolumeMounts: []
382382

383+
## Lifecycle hooks to add to the SonarQube container
384+
lifecycle: {}
385+
383386
# Define the Horizontal Pod Autoscaler for the app deployment
384387
hpa:
385388
enabled: false

charts/sonarqube/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# SonarQube Chart Changelog
22
All changes to this chart will be documented in this file.
33

4+
## [2025.7.0]
5+
* Update Chart's version to 2025.7.0
6+
* Support lifecycle hooks on the SonarQube container
7+
48
## [2025.6.0]
59
* Update Chart's version to 2025.6.0
610
* Upgrade SonarQube Community Build to 25.10.0.114319

charts/sonarqube/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: sonarqube
33
description: SonarQube is a self-managed, automatic code review tool that systematically helps you deliver clean code. As a core element of our Sonar solution, SonarQube integrates into your existing workflow and detects issues in your code to help you perform continuous code inspections of your projects. The tool analyses 30+ different programming languages and integrates into your CI pipeline and DevOps platform to ensure that your code meets high-quality standards.
44
type: application
5-
version: 2025.6.0
5+
version: 2025.7.0
66
appVersion: 2025.5.0
77
keywords:
88
- coverage

charts/sonarqube/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ The following table lists the configurable parameters of the SonarQube chart and
281281
| `httpsProxy` | HTTPS proxy for downloading JMX agent and install plugins, will supersede initContainer specific https proxy variable | `` |
282282
| `noProxy` | No proxy for downloading JMX agent and install plugins, will supersede initContainer specific no proxy variables | `` |
283283
| `ingress-nginx.enabled` | Install Nginx Ingress Helm | `false` |
284+
| `lifecycle` | Lifecycle hooks to add to the SonarQube container | `{}` |
284285

285286
### NetworkPolicies
286287

charts/sonarqube/templates/_pod.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ spec:
360360
{{- with .Values.extraVolumeMounts }}
361361
{{- toYaml . | nindent 8 }}
362362
{{- end }}
363+
{{- with .Values.lifecycle }}
364+
lifecycle: {{- toYaml . | nindent 8 }}
365+
{{- end }}
363366
{{- with .Values.priorityClassName }}
364367
priorityClassName: {{ . }}
365368
{{- end }}

charts/sonarqube/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ extraContainers: []
302302
extraVolumes: []
303303
extraVolumeMounts: []
304304

305+
## Lifecycle hooks to add to the SonarQube container
306+
lifecycle: {}
307+
305308
## Provide a secret containing one or more certificate files in the keys that will be added to cacerts
306309
## The cacerts file will be set via SONARQUBE_WEB_JVM_OPTS and SONAR_CE_JAVAOPTS
307310
##

0 commit comments

Comments
 (0)