[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
This commit is contained in:
dcplaya 2020-07-07 12:47:15 -07:00 committed by GitHub
parent e1b17cb080
commit 222718f335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View File

@ -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/

View File

@ -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: {}

View File

@ -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