Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for WaitForNamedCacheSync (0.34 sec)

  1. pkg/controller/endpointslice/endpointslice_controller.go

    	defer c.topologyQueue.ShutDown()
    
    	logger := klog.FromContext(ctx)
    	logger.Info("Starting endpoint slice controller")
    	defer logger.Info("Shutting down endpoint slice controller")
    
    	if !cache.WaitForNamedCacheSync("endpoint_slice", ctx.Done(), c.podsSynced, c.servicesSynced, c.endpointSlicesSynced, c.nodesSynced) {
    		return
    	}
    
    	logger.V(2).Info("Starting service queue worker threads", "total", workers)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. pkg/controller/deployment/deployment_controller.go

    	logger := klog.FromContext(ctx)
    	logger.Info("Starting controller", "controller", "deployment")
    	defer logger.Info("Shutting down controller", "controller", "deployment")
    
    	if !cache.WaitForNamedCacheSync("deployment", ctx.Done(), dc.dListerSynced, dc.rsListerSynced, dc.podListerSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, dc.worker, time.Second)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/pv_controller_base.go

    	defer ctrl.eventBroadcaster.Shutdown()
    
    	logger := klog.FromContext(ctx)
    	logger.Info("Starting persistent volume controller")
    	defer logger.Info("Shutting down persistent volume controller")
    
    	if !cache.WaitForNamedCacheSync("persistent volume", ctx.Done(), ctrl.volumeListerSynced, ctrl.claimListerSynced, ctrl.classListerSynced, ctrl.podListerSynced, ctrl.NodeListerSynced) {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/controller/repairip.go

    	r.broadcaster.StartRecordingToSink(stopCh)
    	defer r.broadcaster.Shutdown()
    
    	klog.Info("Starting ipallocator-repair-controller")
    	defer klog.Info("Shutting down ipallocator-repair-controller")
    
    	if !cache.WaitForNamedCacheSync("ipallocator-repair-controller", stopCh, r.ipAddressSynced, r.servicesSynced, r.serviceCIDRSynced) {
    		return
    	}
    
    	// First sync goes through all the Services and IPAddresses in the cache,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  5. pkg/controller/endpoint/endpoints_controller.go

    	defer e.queue.ShutDown()
    
    	logger := klog.FromContext(ctx)
    	logger.Info("Starting endpoint controller")
    	defer logger.Info("Shutting down endpoint controller")
    
    	if !cache.WaitForNamedCacheSync("endpoint", ctx.Done(), e.podsSynced, e.servicesSynced, e.endpointsSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, e.worker, e.workerLoopPeriod)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/attach_detach_controller.go

    	synced := []kcache.InformerSynced{adc.podsSynced, adc.nodesSynced, adc.pvcsSynced, adc.pvsSynced,
    		adc.csiNodeSynced, adc.csiDriversSynced, adc.volumeAttachmentSynced}
    	if !kcache.WaitForNamedCacheSync("attach detach", ctx.Done(), synced...) {
    		return
    	}
    
    	err := adc.populateActualStateOfWorld(logger)
    	if err != nil {
    		logger.Error(err, "Error populating the actual state of world")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  7. pkg/controller/resourcequota/resource_quota_controller_test.go

    	// Sync(client, period, stopCh):
    	//    wait.Until() loops with `period` until the `stopCh` is closed :
    	//       GetQuotableResources()
    	//       resyncMonitors()
    	//       cache.WaitForNamedCacheSync() loops with `syncedPollPeriod` (hardcoded to 100ms), until either its stop channel is closed after `period`, or all caches synced.
    	//
    	// Setting the period to 200ms allows the WaitForCacheSync() to check
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  8. pkg/controller/cronjob/cronjob_controllerv2.go

    	defer jm.queue.ShutDown()
    
    	logger := klog.FromContext(ctx)
    	logger.Info("Starting cronjob controller v2")
    	defer logger.Info("Shutting down cronjob controller v2")
    
    	if !cache.WaitForNamedCacheSync("cronjob", ctx.Done(), jm.jobListerSynced, jm.cronJobListerSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, jm.worker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  9. pkg/controller/garbagecollector/graph_builder.go

    	}
    
    	resourceMonitor := &Monitor{
    		Store:      monitor.store,
    		Controller: monitor.controller,
    	}
    
    	if !cache.WaitForNamedCacheSync(
    		gb.Name(),
    		ctx.Done(),
    		func() bool {
    			return monitor.controller.HasSynced()
    		},
    	) {
    		// returning monitor to allow the caller to decide whether to retry as it can be synced later
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  10. pkg/controller/disruption/disruption.go

    	defer dc.recheckQueue.ShutDown()
    	defer dc.stalePodDisruptionQueue.ShutDown()
    
    	logger.Info("Starting disruption controller")
    	defer logger.Info("Shutting down disruption controller")
    
    	if !cache.WaitForNamedCacheSync("disruption", ctx.Done(), dc.podListerSynced, dc.pdbListerSynced, dc.rcListerSynced, dc.rsListerSynced, dc.dListerSynced, dc.ssListerSynced) {
    		return
    	}
    
    	go wait.UntilWithContext(ctx, dc.worker, time.Second)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
Back to top