mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 04:55:22 +00:00
Refoctor backup controller with controller-runtime. (#5969)
Signed-off-by: Ming <mqiu@vmware.com> Signed-off-by: Xun Jiang <blackpiglet@gmail.com> Co-authored-by: Ming <mqiu@vmware.com>
This commit is contained in:
committed by
GitHub
parent
6d8f086283
commit
7d7e3fff0d
@@ -547,7 +547,7 @@ func (r *restoreReconciler) updateTotalRestoreMetric() {
|
||||
// Wait for 5 seconds to let controller-runtime to setup k8s clients.
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
wait.NonSlidingUntil(
|
||||
wait.Until(
|
||||
func() {
|
||||
// recompute restore_total metric
|
||||
restoreList := &api.RestoreList{}
|
||||
|
||||
Reference in New Issue
Block a user