mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Add subpath to mysqldump persistence (#9654)
Signed-off-by: Kevin ONeal <oneal.kevin@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
0c101b4abc
commit
52bee840de
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user