Skip to content

Commit

Permalink
fix: mysql misses backup policy (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei authored Dec 12, 2024
1 parent bec3e17 commit 2f06876
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions addons/mysql/templates/backuppolicytemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,40 @@ metadata:
spec:
clusterDefinitionRef: mysql
backupPolicies:
- componentDefs: [mysql-5.7, mysql-8.0, mysql-8.4]
target:
role: secondary
fallbackRole: primary
account: root
backupMethods:
- name: xtrabackup
snapshotVolumes: false
actionSetName: mysql-xtrabackup
envMapping:
- key: IMAGE_TAG
valueFrom:
componentDef:
- names: [mysql-8.4]
mappingValue: "8.4"
- names: [mysql-8.0]
mappingValue: "8.0"
- names: [ mysql-5.7]
mappingValue: "2.4"
targetVolumes:
volumeMounts:
- name: data
mountPath: {{ .Values.dataMountPath }}
- name: volume-snapshot
snapshotVolumes: true
actionSetName: mysql-volumesnapshot
target:
role: primary
targetVolumes:
volumes:
- data
volumeMounts:
- name: data
mountPath: {{ .Values.dataMountPath }}
- componentDefRef: mysql
target:
role: secondary
Expand Down

0 comments on commit 2f06876

Please sign in to comment.