diff --git a/controllers/custom/custom_controller.go b/controllers/custom/custom_controller.go index df98b968..76068ed6 100644 --- a/controllers/custom/custom_controller.go +++ b/controllers/custom/custom_controller.go @@ -170,7 +170,7 @@ func (c *CustomController) Start(ctx context.Context) error { func (c *CustomController) WaitForCacheSync(controller cache.Controller) { for !controller.HasSynced() && controller.LastSyncResourceVersion() == "" { c.log.Info("waiting for controller to sync") - time.Sleep(time.Second * 5) + time.Sleep(time.Second * 1) } c.conditions.SetPodDataStoreSyncStatus(true) diff --git a/main.go b/main.go index c3ca9bcf..f18a0fbd 100644 --- a/main.go +++ b/main.go @@ -147,7 +147,7 @@ func main() { flag.BoolVar(&enableProfiling, "enable-profiling", false, "Enable runtime profiling for debugging purposes.") flag.StringVar(&clusterName, "cluster-name", "", "The name of the k8s cluster") - flag.IntVar(&listPageLimit, "page-limit", 100, + flag.IntVar(&listPageLimit, "page-limit", 1000, "The page size limiting the number of response for list operation to API Server") flag.StringVar(&outputPath, "log-file", "stderr", "The path to redirect controller logs") flag.IntVar(&healthCheckTimeout, "health-check-timeout", 28,