From f5112e2b952e513d215285b645d47f6a4e85074d Mon Sep 17 00:00:00 2001 From: Roberto Montero Date: Tue, 3 Nov 2020 21:33:58 +0100 Subject: [PATCH 1/2] Added validation before remove elements of the folder. Add new line for each plugin to install. --- charts/sonarqube/templates/install-plugins.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/sonarqube/templates/install-plugins.yaml b/charts/sonarqube/templates/install-plugins.yaml index 1fe925d..618653a 100644 --- a/charts/sonarqube/templates/install-plugins.yaml +++ b/charts/sonarqube/templates/install-plugins.yaml @@ -19,8 +19,9 @@ data: export no_proxy={{ .Values.plugins.noProxy }} {{- end }} {{- if .Values.plugins.install }} - rm {{ .Values.sonarqubeFolder }}/extensions/downloads/* - {{ range $index, $val := .Values.plugins.install }}echo {{ $val | quote }} >> {{ $.Values.sonarqubeFolder }}/extensions/downloads/list{{ end }} + [ -e {{ .Values.sonarqubeFolder }}/extensions/downloads/* ] && rm {{ .Values.sonarqubeFolder }}/extensions/downloads/* + {{ range $index, $val := .Values.plugins.install }} + echo {{ $val | quote }} >> {{ $.Values.sonarqubeFolder }}/extensions/downloads/list{{ end }} cat {{ .Values.sonarqubeFolder }}/extensions/downloads/list | xargs -n 1 -P 8 wget --directory-prefix {{ .Values.sonarqubeFolder }}/extensions/downloads --no-verbose rm {{ .Values.sonarqubeFolder }}/extensions/downloads/list {{- end }} From 65168e20c081de7e4536d3ddf146f9dba0f03993 Mon Sep 17 00:00:00 2001 From: Roberto Montero Date: Wed, 4 Nov 2020 17:22:17 +0100 Subject: [PATCH 2/2] Incremented Chart version. --- charts/sonarqube/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/sonarqube/Chart.yaml b/charts/sonarqube/Chart.yaml index 7527712..81fe5cc 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.1.1 +version: 9.1.2 appVersion: 8.5.1-community keywords: - coverage