Add subPath to PVC config and update subPath doc for media PVC for Sonarr (#235)

Fix
This commit is contained in:
Radu Micu 2020-06-01 12:42:01 +01:00 committed by GitHub
parent f1c585e318
commit ddd1f81c3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 2.0.0.5344-ls60
description: Sonarr is a television show downloading client
name: sonarr
version: 4.0.0
version: 4.1.0
keywords:
- sonarr
- usenet

View File

@ -89,12 +89,14 @@ The following tables lists the configurable parameters of the Sentry chart and t
| `persistence.config.size` | Size of persistent volume claim | `1Gi` |
| `persistence.config.existingClaim` | Use an existing PVC to persist data | `nil` |
| `persistence.config.storageClass` | Type of persistent volume claim | `-` |
| `persistence.config.subPath` | Mount a sub directory if set | `nil ` |
| `persistence.config.accessMode` | Persistence access mode | `ReadWriteOnce` |
| `persistence.config.skipuninstall` | Do not delete the pvc upon helm uninstall | `false` |
| `persistence.media.enabled` | Use persistent volume for media | `true` |
| `persistence.media.size` | Size of persistent volume claim | `10Gi` |
| `persistence.media.existingClaim` | Use an existing PVC to persist data | `nil` |
| `persistence.media.storageClass` | Type of persistent volume claim | `-` |
| `persistence.media.subPath` | Mount a sub directory if set | `nil ` |
| `persistence.media.accessMode` | Persistence access mode | `ReadWriteOnce` |
| `persistence.media.skipuninstall` | Do not delete the pvc upon helm uninstall | `false` |
| `persistence.extraExistingClaimMounts` | Optionally add multiple existing claims | `[]` |

View File

@ -66,6 +66,9 @@ spec:
volumeMounts:
- mountPath: /config
name: config
{{- if .Values.persistence.config.subPath }}
subPath: "{{ .Values.persistence.config.subPath }}"
{{- end }}
- mountPath: /media
name: media
{{- if .Values.persistence.media.subPath }}

View File

@ -97,6 +97,7 @@ persistence:
## If you want to reuse an existing claim, you can pass the name of the PVC using
## the existingClaim variable
# existingClaim: your-claim
# subPath: some-subpath
accessMode: ReadWriteOnce
size: 1Gi
## Do not delete the pvc upon helm uninstall