mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49:03 +00:00
[plex] allow disabling of data volume and sync extraMounts from nzbget (#302)
* allow disabling od data volume and sync extraMounts from nzbget * bump chart version
This commit is contained in:
parent
52f4f42a02
commit
3d64343825
@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
appVersion: 1.19.1.2645-ccb6eb67e
|
appVersion: 1.19.1.2645-ccb6eb67e
|
||||||
description: Plex Media Server
|
description: Plex Media Server
|
||||||
name: plex
|
name: plex
|
||||||
version: 1.6.1
|
version: 1.7.0
|
||||||
keywords:
|
keywords:
|
||||||
- plex
|
- plex
|
||||||
home: https://plex.tv/
|
home: https://plex.tv/
|
||||||
|
@ -110,11 +110,13 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
value: "{{ template "plex.fullname" . }}-transcode"
|
value: "{{ template "plex.fullname" . }}-transcode"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.persistence.data.enabled }}
|
||||||
- name: DATA_PVC
|
- name: DATA_PVC
|
||||||
{{- if .Values.persistence.data.claimName }}
|
{{- if .Values.persistence.data.claimName }}
|
||||||
value: "{{ .Values.persistence.data.claimName }}"
|
value: "{{ .Values.persistence.data.claimName }}"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
value: "{{ template "plex.fullname" . }}-data"
|
value: "{{ template "plex.fullname" . }}-data"
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: CONFIG_PVC
|
- name: CONFIG_PVC
|
||||||
{{- if .Values.persistence.config.claimName }}
|
{{- if .Values.persistence.config.claimName }}
|
||||||
@ -210,8 +212,12 @@ spec:
|
|||||||
name: "extradata-{{ .name }}"
|
name: "extradata-{{ .name }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range .Values.persistence.extraMounts }}
|
{{- range .Values.persistence.extraMounts }}
|
||||||
- mountPath: "/{{ .mountPath }}"
|
{{- if .mountPath }}
|
||||||
name: "{{ .name }}"
|
- mountPath: /{{ .mountPath }}
|
||||||
|
{{- else }}
|
||||||
|
- mountPath: /{{ .name }}
|
||||||
|
{{- end }}
|
||||||
|
name: {{ .name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: shared
|
- name: shared
|
||||||
mountPath: /shared
|
mountPath: /shared
|
||||||
@ -232,12 +238,14 @@ spec:
|
|||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
|
{{- if .Values.persistence.data.enabled }}
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
{{- if .Values.persistence.data.claimName }}
|
{{- if .Values.persistence.data.claimName }}
|
||||||
claimName: "{{ .Values.persistence.data.claimName }}"
|
claimName: "{{ .Values.persistence.data.claimName }}"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
claimName: "{{ template "plex.fullname" . }}-data"
|
claimName: "{{ template "plex.fullname" . }}-data"
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
@ -36,7 +36,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
---
|
---
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not .Values.persistence.data.claimName }}
|
{{- if and .Values.persistence.data.enabled (not .Values.persistence.data.existingClaim) }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -187,6 +187,8 @@ persistence:
|
|||||||
|
|
||||||
|
|
||||||
data:
|
data:
|
||||||
|
# We want to enable a data pvc
|
||||||
|
enabled: true
|
||||||
# Optionally specify claimName to manually override the PVC to be used for
|
# Optionally specify claimName to manually override the PVC to be used for
|
||||||
# the data directory. If claimName is specified, storageClass and size are
|
# the data directory. If claimName is specified, storageClass and size are
|
||||||
# ignored.
|
# ignored.
|
||||||
@ -212,10 +214,11 @@ persistence:
|
|||||||
extraMounts: []
|
extraMounts: []
|
||||||
## Include additional claims that can be mounted inside the
|
## Include additional claims that can be mounted inside the
|
||||||
## pod. This is useful if you wish to use different paths with categories
|
## pod. This is useful if you wish to use different paths with categories
|
||||||
## Claim will me mounted as /{mountPath}
|
## Claim will me mounted as /{mountPath} if specified. If no {mountPath} is given,
|
||||||
|
## mountPath will default to {name}
|
||||||
# - name: video
|
# - name: video
|
||||||
# claimName: video-claim
|
# claimName: video-claim
|
||||||
# mountPath: mnt/path/in/pod
|
# mountPath: /mnt/path/in/pod
|
||||||
|
|
||||||
config:
|
config:
|
||||||
# Optionally specify claimName to manually override the PVC to be used for
|
# Optionally specify claimName to manually override the PVC to be used for
|
||||||
|
Loading…
Reference in New Issue
Block a user