Closed BornChanger closed 1 month ago
@BornChanger : ANy updates on this. How is the testing going. The code is ready, but I need to enhance the unit test.
@BornChanger: Your PR was out of date, I have automatically updated it for you.
@BornChanger: No presubmit jobs available for pingcap/tidb-operator@master
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: WangLe1321
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Timeline:
2024-05-22 10:08:34.211907174 +0000 UTC m=+2252667.969042740
: :ballot_box_with_check: agreed by WangLe1321.2024-05-22 10:20:32.232722463 +0000 UTC m=+2253385.989858036
: :heavy_multiplication_x::repeat: reset by ti-chi-bot[bot].2024-05-23 10:05:25.945789846 +0000 UTC m=+2338879.702925418
: :ballot_box_with_check: agreed by WangLe1321./run-pull-e2e-kind-br
/cherry-pick release-1.5
@BornChanger: once the present PR merges, I will cherry-pick it on top of release-1.5 in the new PR and assign it to you.
/cherry-pick release-1.6
@BornChanger: once the present PR merges, I will cherry-pick it on top of release-1.6 in the new PR and assign it to you.
Attention: Patch coverage is 0%
with 29 lines
in your changes are missing coverage. Please review.
Project coverage is 21.11%. Comparing base (
3897095
) to head (c20d828
). Report is 8 commits behind head on master.
@BornChanger: new pull request created to branch release-1.5
: #5654.
@BornChanger: cannot checkout release-1.6
: error checking out release-1.6: exit status 1. output: error: pathspec 'release-1.6' did not match any file(s) known to git
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.