Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for runWorker (0.29 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader_controller.go

    	if !cache.WaitForNamedCacheSync(c.name, ctx.Done(), c.configmapInformerSynced) {
    		return
    	}
    
    	// doesn't matter what workers say, only start one.
    	go wait.Until(c.runWorker, time.Second, ctx.Done())
    
    	<-ctx.Done()
    }
    
    // // RunOnce runs a single sync loop
    func (c *RequestHeaderAuthRequestController) RunOnce(ctx context.Context) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller.go

    		panic(fmt.Errorf("unexpected error: %v", err))
    	}
    	close(synchedCh)
    
    	// only start one worker thread since its a slow moving API
    	go wait.Until(c.runWorker, time.Second, stopCh)
    
    	<-stopCh
    }
    
    func (c *DiscoveryController) runWorker() {
    	for c.processNextWorkItem() {
    	}
    }
    
    // processNextWorkItem deals with one key off the queue.  It returns false when it's time to quit.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 21 11:40:03 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig.go

    	// doesn't matter what workers say, only start one.
    	go wait.Until(c.runWorker, time.Second, stopCh)
    
    	// start timer that rechecks every minute, just in case.  this also serves to prime the controller quickly.
    	go wait.Until(func() {
    		c.Enqueue()
    	}, 1*time.Minute, stopCh)
    
    	<-stopCh
    }
    
    func (c *DynamicServingCertificateController) runWorker() {
    	for c.processNextWorkItem() {
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. pkg/controller/nodeipam/ipam/range_allocator.go

    	}
    
    	for i := 0; i < cidrUpdateWorkers; i++ {
    		go wait.UntilWithContext(ctx, r.runWorker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    // runWorker is a long-running function that will continually call the
    // processNextWorkItem function in order to read and process a message on the
    // queue.
    func (r *rangeAllocator) runWorker(ctx context.Context) {
    	for r.processNextNodeWorkItem(ctx) {
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/finalizer/crd_finalizer.go

    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.Until(c.runWorker, time.Second, stopCh)
    	}
    
    	<-stopCh
    }
    
    func (c *CRDFinalizer) runWorker() {
    	for c.processNextWorkItem() {
    	}
    }
    
    // processNextWorkItem deals with one key off the queue.  It returns false when it's time to quit.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/status/naming_controller.go

    		return
    	}
    
    	// only start one worker thread since its a slow moving API and the naming conflict resolution bits aren't thread-safe
    	go wait.Until(c.runWorker, time.Second, stopCh)
    
    	<-stopCh
    }
    
    func (c *NamingConditionController) runWorker() {
    	for c.processNextWorkItem() {
    	}
    }
    
    // processNextWorkItem deals with one key off the queue.  It returns false when it's time to quit.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  7. pkg/registry/core/service/ipallocator/cidrallocator.go

    		runtime.HandleError(fmt.Errorf("timed out waiting for caches to sync"))
    		return
    	}
    
    	// this is single threaded only one serviceCIDR at a time
    	go wait.Until(c.runWorker, time.Second, c.internalStopCh)
    
    	<-c.internalStopCh
    }
    
    func (c *MetaAllocator) runWorker() {
    	for c.processNextItem() {
    	}
    }
    
    func (c *MetaAllocator) processNextItem() bool {
    	// Wait until there is a new item in the working queue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  8. pkg/controller/volume/pvcprotection/pvc_protection_controller.go

    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, c.runWorker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    func (c *Controller) runWorker(ctx context.Context) {
    	for c.processNextWorkItem(ctx) {
    	}
    }
    
    // processNextWorkItem deals with one pvcKey off the queue.  It returns false when it's time to quit.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. pkg/controller/volume/expand/expand_controller.go

    	if !cache.WaitForNamedCacheSync("expand", ctx.Done(), expc.pvcsSynced) {
    		return
    	}
    
    	for i := 0; i < defaultWorkerCount; i++ {
    		go wait.UntilWithContext(ctx, expc.runWorker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    func (expc *expandController) runWorker(ctx context.Context) {
    	for expc.processNextWorkItem(ctx) {
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  10. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go

    	if !cache.WaitForNamedCacheSync("cluster_authentication_trust_controller", ctx.Done(), c.preRunCaches...) {
    		return
    	}
    
    	// only run one worker
    	go wait.Until(c.runWorker, time.Second, ctx.Done())
    
    	// checks are cheap.  run once a minute just to be sure we stay in sync in case fsnotify fails again
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top