From d8dc9f578c545a491e9c4e72ee68e357875f441e Mon Sep 17 00:00:00 2001 From: Jeff Billimek Date: Mon, 5 Nov 2018 07:46:54 -0500 Subject: [PATCH] adding support for subPath Signed-off-by: Jeff Billimek --- charts/kube-plex/Chart.yaml | 2 +- charts/kube-plex/templates/deployment.yaml | 9 +++++++++ charts/kube-plex/values.yaml | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/kube-plex/Chart.yaml b/charts/kube-plex/Chart.yaml index 4507f47..8f090fe 100644 --- a/charts/kube-plex/Chart.yaml +++ b/charts/kube-plex/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 description: A Helm chart for Kubernetes name: kube-plex -version: 0.1.0 +version: 0.1.1 diff --git a/charts/kube-plex/templates/deployment.yaml b/charts/kube-plex/templates/deployment.yaml index 8ac8b96..a1c4729 100644 --- a/charts/kube-plex/templates/deployment.yaml +++ b/charts/kube-plex/templates/deployment.yaml @@ -95,10 +95,19 @@ spec: volumeMounts: - name: data mountPath: /data + {{- if .Values.persistence.data.subPath }} + subPath: {{ .Values.persistence.data.subPath }} + {{ end }} - name: config mountPath: /config + {{- if .Values.persistence.config.subPath }} + subPath: {{ .Values.persistence.config.subPath }} + {{ end }} - name: transcode mountPath: /transcode + {{- if .Values.persistence.transcode.subPath }} + subPath: {{ .Values.persistence.transcode.subPath }} + {{ end }} - name: shared mountPath: /shared resources: diff --git a/charts/kube-plex/values.yaml b/charts/kube-plex/values.yaml index c6e8a93..eb44b62 100644 --- a/charts/kube-plex/values.yaml +++ b/charts/kube-plex/values.yaml @@ -55,6 +55,7 @@ persistence: # If not specified and claimName is not specified, the default storage # class will be used. storageClass: "" + # subPath: some-subpath # The requested size of the volume to be used when creating a # PersistentVolumeClaim. size: 20Gi @@ -67,6 +68,7 @@ persistence: # If not specified and claimName is not specified, the default storage # class will be used. storageClass: "" + # subPath: some-subpath # The requested size of the volume to be used when creating a # PersistentVolumeClaim. size: 40Gi @@ -78,6 +80,7 @@ persistence: # Optionally specify a storage class to be used for the config directory. # If not specified and claimName is not specified, the default storage # class will be used. + # subPath: some-subpath storageClass: "" # The requested size of the volume to be used when creating a # PersistentVolumeClaim.