diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index d6b2f4c3947..5976466a8c7 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -8,6 +8,8 @@ resources: - bases/apps.kubeblocks.io_clusterversions.yaml - bases/apps.kubeblocks.io_configconstraints.yaml - bases/apps.kubeblocks.io_opsrequests.yaml +- bases/dataprotection.kubeblocks.io_actionsets.yaml +- bases/dataprotection.kubeblocks.io_backupschedules.yaml - bases/dataprotection.kubeblocks.io_backuppolicies.yaml - bases/dataprotection.kubeblocks.io_backups.yaml - bases/extensions.kubeblocks.io_addons.yaml diff --git a/pkg/dataprotection/utils/periodical_enqueue_source_test.go b/pkg/dataprotection/utils/periodical_enqueue_source_test.go index 5647efad6d4..7c4ec55fecb 100644 --- a/pkg/dataprotection/utils/periodical_enqueue_source_test.go +++ b/pkg/dataprotection/utils/periodical_enqueue_source_test.go @@ -131,15 +131,15 @@ var _ = Describe("Periodical Enqueue Source", func() { return backupList } - By("start source") - Expect(source.Start(ctx, nil, queue)).Should(Succeed()) - By("create a resource") createBackup(backupName + "-1") By("create another resource") createBackup(backupName + "-2") + By("start source") + Expect(source.Start(ctx, nil, queue)).Should(Succeed()) + time.Sleep(2 * time.Second) Expect(queue.Len()).Should(Equal(2)) first, _ := queue.Get()