[Plex] - Allow claimName to not be specified for extra mounts and add subPath (#168)

Co-authored-by: ᗪєνιη ᗷυнʟ <onedr0p@users.noreply.github.com>
This commit is contained in:
Carlos Ravelo 2020-11-16 18:34:22 -05:00 committed by GitHub
parent 459110633a
commit e4528a12c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

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

View File

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

View File

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