diff --git a/stable/mysqldump/Chart.yaml b/stable/mysqldump/Chart.yaml index 1cfc1bedfc..55ccd2e8cd 100644 --- a/stable/mysqldump/Chart.yaml +++ b/stable/mysqldump/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 2.0.0 description: A Helm chart to help backup MySQL databases using mysqldump name: mysqldump -version: 2.0.0 +version: 2.0.1 keywords: - mysql - mysqldump diff --git a/stable/mysqldump/README.md b/stable/mysqldump/README.md index e5b4766692..ae3f688471 100644 --- a/stable/mysqldump/README.md +++ b/stable/mysqldump/README.md @@ -64,6 +64,7 @@ persistence.enabled | create new PVC (unless `persistentVolumeClaim` persistence.size | size of PVC to create | 8Gi persistence.accessMode | accessMode to use for PVC | ReadWriteOnce persistence.storageClass | storage class to use for PVC | +persistence.subPath | subPath for PVC | allDatabases.enabled | backup all databases | true allDatabases.SingleSqlFile | backup all databases to singel file | false housekeeping.enabled | delete olf backups in pvc | true diff --git a/stable/mysqldump/files/job.tpl b/stable/mysqldump/files/job.tpl index ab6af0414b..5d44ea0c28 100644 --- a/stable/mysqldump/files/job.tpl +++ b/stable/mysqldump/files/job.tpl @@ -12,6 +12,9 @@ spec: volumeMounts: - name: backups mountPath: /backup +{{- if .Values.persistence.subPath }} + subPath: {{ .Values.persistence.subPath }} +{{- end }} - name: mysql-backup-script mountPath: /scripts {{- if .Values.upload.ssh.enabled }} diff --git a/stable/mysqldump/values.yaml b/stable/mysqldump/values.yaml index 14bb745075..9c2eb7f075 100644 --- a/stable/mysqldump/values.yaml +++ b/stable/mysqldump/values.yaml @@ -38,14 +38,15 @@ successfulJobsHistoryLimit: 5 failedJobsHistoryLimit: 5 ## set persistentVolumeClaim to use a PVC that already exists. -## if set will override any settings under `resistence` otherwise -## if not set and `persistence` set to true, will create a PVC. +## if set will override any settings under `persistence` otherwise +## if not set and `persistence.enabled` set to true, will create a PVC. # persistentVolumeClaim: persistence: enabled: true size: 8Gi accessMode: ReadWriteOnce + subPath: ## If defined, storageClassName: ## If set to "-", storageClassName: "", which disables dynamic provisioning ## If undefined (the default) or set to null, no storageClassName spec is