From e4528a12c761dfc14298d23df75626680db9bf39 Mon Sep 17 00:00:00 2001 From: Carlos Ravelo Date: Mon, 16 Nov 2020 18:34:22 -0500 Subject: [PATCH] [Plex] - Allow claimName to not be specified for extra mounts and add subPath (#168) 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 | 5 +++++ charts/plex/values.yaml | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/plex/Chart.yaml b/charts/plex/Chart.yaml index 8736534b..32815d2b 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.5 +version: 2.1.0 keywords: - plex home: https://plex.tv/ diff --git a/charts/plex/templates/deployment.yaml b/charts/plex/templates/deployment.yaml index 347520ac..3fcabb00 100644 --- a/charts/plex/templates/deployment.yaml +++ b/charts/plex/templates/deployment.yaml @@ -241,6 +241,9 @@ spec: {{- else }} - mountPath: /{{ .name }} {{- end }} + {{- if .subPath }} + subPath: {{ .subPath }} + {{ end }} name: {{ .name }} {{- end }} - name: shared @@ -303,9 +306,11 @@ spec: {{- end }} {{- end }} {{- range .Values.persistence.extraMounts }} + {{- if .claimName }} - name: {{ .name }} persistentVolumeClaim: claimName: {{ .claimName }} + {{- end }} {{- end }} - name: shared emptyDir: {} diff --git a/charts/plex/values.yaml b/charts/plex/values.yaml index ea9f08a2..1a7ecdff 100644 --- a/charts/plex/values.yaml +++ b/charts/plex/values.yaml @@ -218,8 +218,11 @@ persistence: ## Claim will me mounted as /{mountPath} if specified. If no {mountPath} is given, ## mountPath will default to {name} # - name: video - # claimName: video-claim + # # if claimName is specified the a new volume will mounted, if omitted the mount will be considered to be associated with one of the standard volumes (e.g data, config, transcode). + # # This useful to mount data to a different subPath + # claimName: optional-claim # mountPath: /mnt/path/in/pod + # subPath: optional/sub/path config: # Optionally specify claimName to manually override the PVC to be used for