Closed ti-chi-bot closed 4 months ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign gozssky for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
This is an automated cherry-pick of #5633
What problem does this PR solve?
Close #5632
What is changed and how does it work?
In order to support multiple active schedulers, we need to co-ordinate the scheduling to make sure there is only one active backup within the same namespace. A new label is introduced in this PR, whose key is
tidb.pingcap.com/backup-schedule-group
. Backup schedule CRD can be assigned such a label, and the value is not empty, if it's in a multiple schedule group, otherwise, the schedule is independent. At backup schedule check time, all schedules in the same group need to be checked.Here is a sample volume backup schedule CRD with the label specified
tidb.pingcap.com/backup-schedule-group: ebs-backup-schedule-group1
.This PR also provides the similar support to snapshot (non-EBS snapshot) backup schedule.
Code changes
Tests
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.