From d1cf89d2f929174d3f2319cfefc35128b152e681 Mon Sep 17 00:00:00 2001 From: Nick Tan Date: Fri, 3 Mar 2023 20:41:39 -0800 Subject: [PATCH 1/2] fixed: casc_configs was not correctly removed when `initializeOnce=true` and `configAutoReload.enabled=false` Signed-off-by: Nick Tan --- charts/jenkins/templates/config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/jenkins/templates/config.yaml b/charts/jenkins/templates/config.yaml index b94c79f5d..521996eaa 100644 --- a/charts/jenkins/templates/config.yaml +++ b/charts/jenkins/templates/config.yaml @@ -16,6 +16,9 @@ data: {{- if .Values.controller.initializeOnce }} if [ -f {{ .Values.controller.jenkinsHome }}/initialization-completed ]; then echo "controller was previously initialized, refusing to re-initialize" + {{- if not .Values.controller.sidecars.configAutoReload.enabled }} + rm -rf {{ .Values.controller.jenkinsHome }}/casc_configs/* + {{- end }} exit 0 fi {{- end }} From 77bebad5d9ebca3e187ee5931fbc368171485b8b Mon Sep 17 00:00:00 2001 From: Nick Tan Date: Sat, 4 Mar 2023 16:22:45 -0800 Subject: [PATCH 2/2] Bump chart version Signed-off-by: Nick Tan --- charts/jenkins/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/jenkins/Chart.yaml b/charts/jenkins/Chart.yaml index 81ce34921..a9e19b846 100644 --- a/charts/jenkins/Chart.yaml +++ b/charts/jenkins/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: jenkins home: https://jenkins.io/ -version: 4.3.4 +version: 4.3.5 appVersion: 2.375.3 description: Jenkins - Build great things at any scale! The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. sources: