- Sort Score
- Result 10 results
- Languages All
Results 51 - 54 of 54 for waitForCacheSync (0.38 sec)
-
pkg/controller/volume/persistentvolume/pv_controller_test.go
fakeVolumeWatch.Add(volume) }(volume) } // Start the controller ctx, cancel := context.WithCancel(context.TODO()) informers.Start(ctx.Done()) informers.WaitForCacheSync(ctx.Done()) go ctrl.Run(ctx) // Wait for the controller to pass initial sync and fill its caches. err = wait.Poll(10*time.Millisecond, wait.ForeverTestTimeout, func() (bool, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 43.4K bytes - Viewed (0) -
pkg/volume/csi/csi_plugin_test.go
volumeAttachmentInformer := factory.Storage().V1().VolumeAttachments() volumeAttachmentLister := volumeAttachmentInformer.Lister() factory.Start(wait.NeverStop) syncedTypes := factory.WaitForCacheSync(wait.NeverStop) if len(syncedTypes) != 2 { t.Fatalf("informers are not synced") } for ty, ok := range syncedTypes { if !ok { t.Fatalf("failed to sync: %#v", ty) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.8K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/controller.go
c.initialSyncTimedout.Store(true) } }) } st := time.Now() go c.imports.Run(stop) go c.exports.Run(stop) kubelib.WaitForCacheSync("kube controller", stop, c.informersSynced) log.Infof("kube controller for %s synced after %v", c.opts.ClusterID, time.Since(st)) // after the in-order sync we can start processing the queue c.queue.Run(stop)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 41.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go
defer utilruntime.HandleCrash() // Let the config worker stop when we are done defer cfgCtlr.configQueue.ShutDown() klog.Info("Starting API Priority and Fairness config controller") if ok := cache.WaitForCacheSync(stopCh, cfgCtlr.plInformerSynced, cfgCtlr.fsInformerSynced); !ok { return fmt.Errorf("Never achieved initial sync") } klog.Info("Running API Priority and Fairness config worker")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 48.8K bytes - Viewed (0)