Add subpath to mysqldump persistence (#9654)

Signed-off-by: Kevin ONeal <oneal.kevin@gmail.com>
This commit is contained in:
Kevin O'Neal
2019-01-08 06:16:33 -08:00
committed by Kubernetes Prow Robot
parent 0c101b4abc
commit 52bee840de
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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
+3
View File
@@ -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 }}
+3 -2
View File
@@ -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: <existing-PVC>
persistence:
enabled: true
size: 8Gi
accessMode: ReadWriteOnce
subPath:
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is