From b9146f48c2f9124e437126afd838d881db7b5f2b Mon Sep 17 00:00:00 2001 From: dcplaya Date: Sun, 12 Jul 2020 12:37:14 -0700 Subject: [PATCH] [nzbget] Fixes issue with mounting in sub directories (#280) * Allow custom, multi-folder mount paths * Added true independent path mounting. For some reason using the other way only allowed level root directory mounting --- charts/nzbget/Chart.yaml | 2 +- charts/nzbget/templates/deployment.yaml | 2 +- charts/nzbget/values.yaml | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/nzbget/Chart.yaml b/charts/nzbget/Chart.yaml index 32b48617..b68e6db1 100644 --- a/charts/nzbget/Chart.yaml +++ b/charts/nzbget/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: v21.0-ls14 description: NZBGet is a Usenet downloader client name: nzbget -version: 3.2.0 +version: 3.2.1 keywords: - nzbget - usenet diff --git a/charts/nzbget/templates/deployment.yaml b/charts/nzbget/templates/deployment.yaml index 95156913..da3260e2 100644 --- a/charts/nzbget/templates/deployment.yaml +++ b/charts/nzbget/templates/deployment.yaml @@ -70,7 +70,7 @@ spec: subPath: {{ .Values.persistence.downloads.subPath }} {{ end }} {{- range .Values.persistence.extraMounts }} - - mountPath: /{{ .name }} + - mountPath: /{{ .mountPath }} name: {{ .name }} {{- end }} resources: diff --git a/charts/nzbget/values.yaml b/charts/nzbget/values.yaml index 23d812e9..03e134d8 100644 --- a/charts/nzbget/values.yaml +++ b/charts/nzbget/values.yaml @@ -103,9 +103,10 @@ persistence: 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} + ## Claim will me mounted as /{mountPath} # - name: video # claimName: video-claim + # mountPath: /mnt/path/in/pod resources: {} # We usually recommend not to specify default resources and to leave this as a conscious