Skip to content

Commit c62075b

Browse files
[bitnami/sonarqube] Set usePasswordFiles=true by default (#32769)
* [bitnami/sonarqube] Set `usePasswordFiles=true` by default Signed-off-by: Miguel Ruiz <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Miguel Ruiz <[email protected]> Signed-off-by: Bitnami Bot <[email protected]> Co-authored-by: Bitnami Bot <[email protected]>
1 parent 4a88674 commit c62075b

File tree

5 files changed

+46
-5
lines changed

5 files changed

+46
-5
lines changed

bitnami/sonarqube/CHANGELOG.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Changelog
22

3-
## 8.0.7 (2025-04-03)
3+
## 8.1.0 (2025-04-04)
44

5-
* [bitnami/sonarqube] Release 8.0.7 ([#32805](https://github.com/bitnami/charts/pull/32805))
5+
* [bitnami/sonarqube] Set `usePasswordFiles=true` by default ([#32769](https://github.com/bitnami/charts/pull/32769))
6+
7+
## <small>8.0.7 (2025-04-03)</small>
8+
9+
* [bitnami/*] Add tanzuCategory annotation (#32409) ([a8fba5c](https://github.com/bitnami/charts/commit/a8fba5cb01f6f4464ca7f69c50b0fbe97d837a95)), closes [#32409](https://github.com/bitnami/charts/issues/32409)
10+
* [bitnami/sonarqube] Release 8.0.7 (#32805) ([70b4f28](https://github.com/bitnami/charts/commit/70b4f2859fc026cab0b083749f00c704d63534a2)), closes [#32805](https://github.com/bitnami/charts/issues/32805)
611

712
## <small>8.0.6 (2025-03-04)</small>
813

bitnami/sonarqube/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ maintainers:
3838
name: sonarqube
3939
sources:
4040
- https://github.com/bitnami/charts/tree/main/bitnami/sonarqube
41-
version: 8.0.7
41+
version: 8.1.0

bitnami/sonarqube/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ As an alternative, this chart supports using an initContainer to change the owne
271271
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
272272
| `clusterDomain` | Kubernetes cluster domain name | `cluster.local` |
273273
| `extraDeploy` | Array of extra objects to deploy with the release | `[]` |
274+
| `usePasswordFiles` | Mount credentials as files instead of using environment variables | `true` |
274275
| `diagnosticMode.enabled` | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | `false` |
275276
| `diagnosticMode.command` | Command to override all containers in the deployment | `["sleep"]` |
276277
| `diagnosticMode.args` | Args to override all containers in the deployment | `["infinity"]` |

bitnami/sonarqube/templates/deployment.yaml

+34-2
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,16 @@ spec:
214214
value: {{ ternary "yes" "no" .Values.sonarqubeSkipInstall | quote }}
215215
- name: SONARQUBE_USERNAME
216216
value: {{ .Values.sonarqubeUsername | quote }}
217+
{{- if .Values.usePasswordFiles }}
218+
- name: SONARQUBE_PASSWORD_FILE
219+
value: "/opt/bitnami/sonarqube/secrets/sonarqube-password"
220+
{{- else }}
217221
- name: SONARQUBE_PASSWORD
218222
valueFrom:
219223
secretKeyRef:
220224
name: {{ include "sonarqube.secretName" . }}
221225
key: sonarqube-password
226+
{{- end }}
222227
- name: SONARQUBE_EMAIL
223228
value: {{ .Values.sonarqubeEmail | quote }}
224229
{{- if or .Values.plugins.install .Values.caCerts.enabled}}
@@ -311,11 +316,16 @@ spec:
311316
value: {{ include "sonarqube.database.name" . | quote }}
312317
- name: SONARQUBE_DATABASE_USER
313318
value: {{ include "sonarqube.database.username" . | quote }}
319+
{{- if .Values.usePasswordFiles }}
320+
- name: SONARQUBE_DATABASE_PASSWORD_FILE
321+
value: "/opt/bitnami/sonarqube/secrets/password"
322+
{{- else }}
314323
- name: SONARQUBE_DATABASE_PASSWORD
315324
valueFrom:
316325
secretKeyRef:
317326
name: {{ include "sonarqube.database.secretName" . }}
318327
key: password
328+
{{- end }}
319329
{{- if .Values.smtpHost }}
320330
- name: SONARQUBE_SMTP_HOST
321331
value: {{ .Values.smtpHost | quote }}
@@ -329,12 +339,17 @@ spec:
329339
value: {{ .Values.smtpUser | quote }}
330340
{{- end }}
331341
{{- if or .Values.smtpPassword .Values.smtpExistingSecret }}
342+
{{- if .Values.usePasswordFiles }}
343+
- name: SONARQUBE_SMTP_PASSWORD_FILE
344+
value: "/opt/bitnami/sonarqube/secrets/smtp-password"
345+
{{- else }}
332346
- name: SONARQUBE_SMTP_PASSWORD
333347
valueFrom:
334348
secretKeyRef:
335349
name: {{ include "sonarqube.smtpSecretName" . }}
336350
key: smtp-password
337351
{{- end }}
352+
{{- end }}
338353
{{- if .Values.smtpProtocol }}
339354
- name: SONARQUBE_SMTP_PROTOCOL
340355
value: {{ .Values.smtpProtocol | quote }}
@@ -407,8 +422,12 @@ spec:
407422
- name: empty-dir
408423
mountPath: /tmp
409424
subPath: tmp-dir
410-
- mountPath: /bitnami/sonarqube
411-
name: sonarqube
425+
- name: sonarqube
426+
mountPath: /bitnami/sonarqube
427+
{{- if .Values.usePasswordFiles }}
428+
- name: sonarqube-secrets
429+
mountPath: /opt/bitnami/sonarqube/secrets
430+
{{- end }}
412431
{{- if or .Values.plugins.install .Values.caCerts.enabled }}
413432
- name: provisioning
414433
mountPath: {{ .Values.provisioningFolder }}
@@ -468,6 +487,19 @@ spec:
468487
volumes:
469488
- name: empty-dir
470489
emptyDir: {}
490+
{{- if .Values.usePasswordFiles }}
491+
- name: sonarqube-secrets
492+
projected:
493+
sources:
494+
- secret:
495+
name: {{ include "sonarqube.secretName" . }}
496+
- secret:
497+
name: {{ include "sonarqube.database.secretName" . }}
498+
{{- if or .Values.smtpPassword .Values.smtpExistingSecret }}
499+
- secret:
500+
name: {{ include "sonarqube.smtpSecretName" . }}
501+
{{- end }}
502+
{{- end }}
471503
{{- if or .Values.plugins.install .Values.caCerts.enabled }}
472504
- name: provisioning
473505
emptyDir: {}

bitnami/sonarqube/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ clusterDomain: cluster.local
5959
## @param extraDeploy Array of extra objects to deploy with the release
6060
##
6161
extraDeploy: []
62+
## @param usePasswordFiles Mount credentials as files instead of using environment variables
63+
##
64+
usePasswordFiles: true
6265
## Enable diagnostic mode in the deployment
6366
##
6467
diagnosticMode:

0 commit comments

Comments
 (0)