From 2546a77ffd7bcc1f7f7fec172837e0102f75de7a Mon Sep 17 00:00:00 2001 From: T Date: Tue, 2 Feb 2021 16:57:32 +0100 Subject: [PATCH] sonarqube: restore plugin directory mount behaviour in case of no persistence as in v9.2.6. Should fix #250 --- charts/sonarqube/Chart.yaml | 2 +- charts/sonarqube/templates/deployment.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/sonarqube/Chart.yaml b/charts/sonarqube/Chart.yaml index 542f588..4c51089 100644 --- a/charts/sonarqube/Chart.yaml +++ b/charts/sonarqube/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: sonarqube description: SonarQube is an open sourced code quality scanning tool -version: 9.3.0 +version: 9.3.1 appVersion: 8.5.1-community keywords: - coverage diff --git a/charts/sonarqube/templates/deployment.yaml b/charts/sonarqube/templates/deployment.yaml index cebad8f..67f6e2e 100644 --- a/charts/sonarqube/templates/deployment.yaml +++ b/charts/sonarqube/templates/deployment.yaml @@ -266,9 +266,15 @@ spec: - mountPath: {{ .Values.sonarqubeFolder }}/data name: sonarqube subPath: data + {{- if .Values.persistence.enabled }} - mountPath: {{ .Values.sonarqubeFolder }}/extensions name: sonarqube subPath: extensions + {{- else if .Values.plugins.install }} + - mountPath: {{ .Values.sonarqubeFolder }}/extensions/downloads + name: sonarqube + subPath: extensions/downloads + {{- end }} {{- if .Values.plugins.lib }} {{- range $index, $val := .Values.plugins.lib }} - mountPath: {{ $.Values.sonarqubeFolder }}/lib/common/{{ $val }}