From e67b0cc17b963d7f9768528b4f0517c3360fc3c7 Mon Sep 17 00:00:00 2001 From: Carlos Ravelo Date: Sun, 15 Nov 2020 19:22:08 -0500 Subject: [PATCH] [Plex] Added the ability to specify subPath on each extraData mount (#159) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ᗪєνιη ᗷυнʟ --- charts/plex/Chart.yaml | 2 +- charts/plex/templates/deployment.yaml | 3 +++ charts/plex/values.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/plex/Chart.yaml b/charts/plex/Chart.yaml index cc76a565..8736534b 100644 --- a/charts/plex/Chart.yaml +++ b/charts/plex/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 1.20.2.3402 description: Plex Media Server name: plex -version: 2.0.4 +version: 2.0.5 keywords: - plex home: https://plex.tv/ diff --git a/charts/plex/templates/deployment.yaml b/charts/plex/templates/deployment.yaml index fac68856..347520ac 100644 --- a/charts/plex/templates/deployment.yaml +++ b/charts/plex/templates/deployment.yaml @@ -230,6 +230,9 @@ spec: {{ end }} {{- range .Values.persistence.extraData }} - mountPath: "/data-{{ .name }}" + {{- if .subPath }} + subPath: {{ .subPath }} + {{ end }} name: "extradata-{{ .name }}" {{- end }} {{- range .Values.persistence.extraMounts }} diff --git a/charts/plex/values.yaml b/charts/plex/values.yaml index 58986be4..ea9f08a2 100644 --- a/charts/plex/values.yaml +++ b/charts/plex/values.yaml @@ -210,6 +210,7 @@ persistence: # with the additional field 'name' # - claimName: "special-tv" # name: 'foo' + # subPath: optional/sub/path extraMounts: [] ## Include additional claims that can be mounted inside the