mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 05:46:37 +00:00
@@ -144,7 +144,7 @@ func defaultLocationWithLongerLocationName(namespace string) *velerov1api.Backup
|
||||
}
|
||||
}
|
||||
|
||||
func numBackups(c ctrlClient.WithWatch, ns string) (int, error) {
|
||||
func numBackups(c ctrlClient.WithWatch) (int, error) {
|
||||
var existingK8SBackups velerov1api.BackupList
|
||||
err := c.List(context.TODO(), &existingK8SBackups, &ctrlClient.ListOptions{})
|
||||
if err != nil {
|
||||
@@ -692,7 +692,7 @@ var _ = Describe("Backup Sync Reconciler", func() {
|
||||
}
|
||||
r.deleteOrphanedBackups(ctx, bslName, test.cloudBackups, velerotest.NewLogger())
|
||||
|
||||
numBackups, err := numBackups(client, r.namespace)
|
||||
numBackups, err := numBackups(client)
|
||||
Expect(err).ShouldNot(HaveOccurred())
|
||||
|
||||
fmt.Println("")
|
||||
|
||||
Reference in New Issue
Block a user