-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Refoctor backup controller based on kubebuilder #5835
Conversation
56d238c
to
bef44b4
Compare
bc71190
to
8a65c40
Compare
1e5c66b
to
c099811
Compare
c099811
to
1c0e926
Compare
b09aa22
to
727b8b3
Compare
727b8b3
to
7f5e98c
Compare
742632d
to
27bbbec
Compare
Codecov Report
@@ Coverage Diff @@
## main #5835 +/- ##
==========================================
+ Coverage 39.94% 40.12% +0.17%
==========================================
Files 253 253
Lines 22259 22239 -20
==========================================
+ Hits 8892 8923 +31
+ Misses 12716 12665 -51
Partials 651 651
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
// By far, PodVolumeBackup, PodVolumeRestore, BackupStorageLocation controllers | ||
// are not included in --disable-controllers list. | ||
// This is because of PVB and PVR are used by node agent DaemonSet, | ||
// and BSL controller is mandatory for Velero to work. | ||
enabledControllers := map[string]func() controllerRunInfo{ |
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.
enabledControllers
now are been removed
for _, newController := range enabledControllers { | ||
controllers = append(controllers, newController()) | ||
} | ||
|
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.
not need anymore
// Adding the controllers to the manager will register them as a (runtime-controller) runnable, | ||
// so the manager will ensure the cache is started and ready before all controller are started | ||
s.mgr.Add(managercontroller.Runnable(controllerRunInfo.controller, controllerRunInfo.numWorkers)) | ||
} |
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.
not need anymore
7112c06
to
02fa8c3
Compare
This is the basic E2E test cases result. Only node-port case failed. Checked with Danfeng. Some cloud providers have the same error. This is not the Velero function defect. https://gist.github.com/blackpiglet/2a2176ec5913b1bdf1937cdda421ab75 |
Signed-off-by: Ming <mqiu@vmware.com>
Signed-off-by: Ming <mqiu@vmware.com> Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
02fa8c3
to
df8ab91
Compare
Signed-off-by: Ming mqiu@vmware.com
Thank you for contributing to Velero!
Please add a summary of your change
Does your change fix a particular issue?
Fixes #(issue)
#5026, Refoctor backup controller based on kubebuilder
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.