-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
br: implement federation volume backup controller #5013
br: implement federation volume backup controller #5013
Conversation
Signed-off-by: WangLe1321 <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5013 +/- ##
==========================================
+ Coverage 57.01% 65.56% +8.54%
==========================================
Files 243 249 +6
Lines 27484 31419 +3935
==========================================
+ Hits 15671 20601 +4930
+ Misses 10280 9222 -1058
- Partials 1533 1596 +63
|
Signed-off-by: WangLe1321 <[email protected]>
Signed-off-by: WangLe1321 <[email protected]>
Signed-off-by: WangLe1321 <[email protected]>
Signed-off-by: WangLe1321 <[email protected]>
Signed-off-by: WangLe1321 <[email protected]>
Signed-off-by: WangLe1321 <[email protected]>
Signed-off-by: WangLe1321 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some unit test cases similar to the data plane backup controller. Others LGTM
if err := kubeClient.PingcapV1alpha1().Backups(backupMember.backup.Namespace). | ||
Delete(ctx, backupMember.backup.Name, metav1.DeleteOptions{}); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to wait for the backup in the data plane deletion is complete?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think waiting for the backup in the data plane deletion complete is better. If the backup in data plane cleanup failed, we shouldn't delete the volume backup in control plane,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, will you add a TODO here?
Signed-off-by: WangLe1321 <[email protected]>
Signed-off-by: WangLe1321 <[email protected]>
test pull-e2e-kind pull-e2e-kind-across-kubernetes pull-e2e-kind-br |
/test pull-e2e-kind pull-e2e-kind-across-kubernetes pull-e2e-kind-br |
/test pull-e2e-kind-basic pull-e2e-kind-serial pull-e2e-kind-tikv-scale-simultaneously pull-e2e-kind-tngm |
/test pull-e2e-kind-basic pull-e2e-kind-tikv-scale-simultaneously pull-e2e-kind-tngm |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: e1197e6
|
/cherry-pick release-1.5 |
@BornChanger: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
@BornChanger: new pull request created to branch In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: WangLe1321 <[email protected]> Co-authored-by: WangLe1321 <[email protected]>
What problem does this PR solve?
implement federation volume backup controller to execute volume backup across multiple k8s clusters.
Close #5012
What is changed and how does it work?
Code changes
Tests
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.