From a9c76ac9b18ea27eb07019954d1b34ae4e297232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20JACQUES?= Date: Mon, 17 Dec 2018 19:08:19 +0100 Subject: [PATCH] Add subPath for jenkins-home mount (#9671) Signed-off-by: Francois JACQUES --- stable/jenkins/Chart.yaml | 2 +- stable/jenkins/README.md | 1 + stable/jenkins/templates/jenkins-master-deployment.yaml | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/stable/jenkins/Chart.yaml b/stable/jenkins/Chart.yaml index 2e72c35645..5071ded3a1 100755 --- a/stable/jenkins/Chart.yaml +++ b/stable/jenkins/Chart.yaml @@ -1,6 +1,6 @@ name: jenkins home: https://jenkins.io/ -version: 0.25.1 +version: 0.26.0 appVersion: lts description: Open source continuous integration server. It supports multiple SCM tools including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based diff --git a/stable/jenkins/README.md b/stable/jenkins/README.md index 84c3f71e3f..e49b3af920 100644 --- a/stable/jenkins/README.md +++ b/stable/jenkins/README.md @@ -194,6 +194,7 @@ It is possible to mount several volumes using `Persistence.volumes` and `Persist | `Persistence.ExistingClaim` | Provide the name of a PVC | `nil` | | `Persistence.AccessMode` | The PVC access mode | `ReadWriteOnce` | | `Persistence.Size` | The size of the PVC | `8Gi` | +| `Persistence.SubPath` | SubPath for jenkins-home mount | `nil` | | `Persistence.volumes` | Additional volumes | `nil` | | `Persistence.mounts` | Additional mounts | `nil` | diff --git a/stable/jenkins/templates/jenkins-master-deployment.yaml b/stable/jenkins/templates/jenkins-master-deployment.yaml index a8c0b2fc12..42314f4448 100644 --- a/stable/jenkins/templates/jenkins-master-deployment.yaml +++ b/stable/jenkins/templates/jenkins-master-deployment.yaml @@ -73,6 +73,9 @@ spec: - mountPath: /var/jenkins_home name: jenkins-home + {{- if .Values.Persistence.SubPath }} + subPath: {{ .Values.Persistence.SubPath }} + {{- end }} - mountPath: /var/jenkins_config name: jenkins-config @@ -175,6 +178,9 @@ spec: mountPath: /var/jenkins_home name: jenkins-home readOnly: false + {{- if .Values.Persistence.SubPath }} + subPath: {{ .Values.Persistence.SubPath }} + {{- end }} - mountPath: /var/jenkins_config name: jenkins-config