From 222718f3354925d7cdfe427394fbf3a2049a044d Mon Sep 17 00:00:00 2001 From: dcplaya Date: Tue, 7 Jul 2020 12:47:15 -0700 Subject: [PATCH] [plex] Allow custom extraMount paths (#270) * Allow extraMounts for Plex, mimicks NZBGet's setup * Allow extraMounts for Plex, mimicks NZBGet's setup * Opps, had an extra end * Up chart up a version since a feature is added instead of a bugfix * Try and get rid of the weird EOF error. Added a space at the end. * Dang fat fingers! * Shouldnt have deleted this! Needed to end the range block * Doh! Wrong spot --- charts/plex/Chart.yaml | 2 +- charts/plex/templates/deployment.yaml | 9 +++++++++ charts/plex/values.yaml | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/charts/plex/Chart.yaml b/charts/plex/Chart.yaml index a4cdddb0..f7847ee3 100644 --- a/charts/plex/Chart.yaml +++ b/charts/plex/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.19.1.2645-ccb6eb67e description: Plex Media Server name: plex -version: 1.5.2 +version: 1.6.0 keywords: - plex home: https://plex.tv/ diff --git a/charts/plex/templates/deployment.yaml b/charts/plex/templates/deployment.yaml index 233120f0..633b8f0a 100644 --- a/charts/plex/templates/deployment.yaml +++ b/charts/plex/templates/deployment.yaml @@ -209,6 +209,10 @@ spec: - mountPath: "/data-{{ .name }}" name: "extradata-{{ .name }}" {{- end }} + {{- range .Values.persistence.extraMounts }} + - mountPath: "/{{ .name }}" + name: "{{ .name }}" + {{- end }} - name: shared mountPath: /shared {{- if .Values.plexPreferences.enabled }} @@ -266,6 +270,11 @@ spec: {{- else }} claimName: "extradata-{{ .name }}" {{- end }} +{{- end }} +{{- range .Values.persistence.extraMounts }} + - name: {{ .name }} + persistentVolumeClaim: + claimName: {{ .claimName }} {{- end }} - name: shared emptyDir: {} diff --git a/charts/plex/values.yaml b/charts/plex/values.yaml index 77bd569d..8a7b7cad 100644 --- a/charts/plex/values.yaml +++ b/charts/plex/values.yaml @@ -209,6 +209,13 @@ persistence: # - claimName: "special-tv" # name: 'foo' + extraMounts: [] + ## Include additional claims that can be mounted inside the + ## pod. This is useful if you wish to use different paths with categories + ## Claim will me mounted as /{name} + # - name: video + # claimName: video-claim + config: # Optionally specify claimName to manually override the PVC to be used for # the config directory. If claimName is specified, storageClass and size