diff --git a/stable/sonarqube/Chart.yaml b/stable/sonarqube/Chart.yaml index 25778286e8..318e68ccbe 100644 --- a/stable/sonarqube/Chart.yaml +++ b/stable/sonarqube/Chart.yaml @@ -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 diff --git a/stable/sonarqube/README.md b/stable/sonarqube/README.md index 46179172fb..75972cf5dc 100644 --- a/stable/sonarqube/README.md +++ b/stable/sonarqube/README.md @@ -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 | diff --git a/stable/sonarqube/templates/deployment.yaml b/stable/sonarqube/templates/deployment.yaml index 0a15b781fe..770b9a1f57 100644 --- a/stable/sonarqube/templates/deployment.yaml +++ b/stable/sonarqube/templates/deployment.yaml @@ -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: diff --git a/stable/sonarqube/values.yaml b/stable/sonarqube/values.yaml index d19dddb607..429e5e4e9a 100644 --- a/stable/sonarqube/values.yaml +++ b/stable/sonarqube/values.yaml @@ -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: