[stable/sonarqube] Add ability to add/mount extra volumes (#19364)

Signed-off-by: VALLEY Antoine <valley.antoine@gmail.com>
Signed-off-by: VALLEY Antoine (T0173847) <antoine.valley@mythalesgroup.io>
This commit is contained in:
sparqueur
2020-01-13 05:29:36 -08:00
committed by Kubernetes Prow Robot
parent 334d459fe5
commit a52b9f31d4
4 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: sonarqube
description: Sonarqube is an open sourced code quality scanning tool
version: 3.2.7
version: 3.2.8
appVersion: 7.9.1
keywords:
- coverage
+2
View File
@@ -69,6 +69,8 @@ The following table lists the configurable parameters of the Sonarqube chart and
| `persistence.storageClass` | Storage class to be used | "" |
| `persistence.accessMode` | Volumes access mode to be set | `ReadWriteOnce` |
| `persistence.size` | Size of the volume | 10Gi |
| `persistence.volumes` | Specify extra volumes. Refer to ".spec.volumes" specification | [] |
| `persistence.mounts` | Specify extra mounts. Refer to ".spec.containers.volumeMounts" specification | [] |
| `sonarProperties` | Custom `sonar.properties` file | None |
| `sonarSecretProperties` | Additional `sonar.properties` file to load from a secret | None |
| `customCerts.enabled` | Use `customCerts.secretName` | false |
@@ -197,6 +197,9 @@ spec:
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
volumeMounts:
{{- if .Values.persistence.mounts }}
{{ toYaml .Values.persistence.mounts | indent 12 }}
{{- end }}
{{- if and .Values.sonarProperties .Values.sonarSecretProperties }}
- mountPath: {{ .Values.sonarqubeFolder }}/conf/
name: concat-dir
@@ -250,6 +253,9 @@ spec:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
volumes:
{{- if .Values.persistence.volumes }}
{{ tpl (toYaml .Values.persistence.volumes | indent 6) . }}
{{- end }}
{{- if or .Values.sonarProperties (not .Values.elasticsearch.bootstrapChecks) }}
- name: config
configMap:
+5
View File
@@ -130,6 +130,11 @@ persistence:
accessMode: ReadWriteOnce
size: 10Gi
## Specify extra volumes. Refer to ".spec.volumes" specification : https://kubernetes.io/fr/docs/concepts/storage/volumes/
volumes: []
## Specify extra mounts. Refer to ".spec.containers.volumeMounts" specification : https://kubernetes.io/fr/docs/concepts/storage/volumes/
mounts: []
# List of plugins to install.
# For example:
# plugins: