Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for UntilWithContext (0.28 sec)

  1. pkg/controller/endpoint/endpoints_controller.go

    	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)
    	}
    
    	go func() {
    		defer utilruntime.HandleCrash()
    		e.checkLeftoverEndpoints()
    	}()
    
    	<-ctx.Done()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/attach_detach_controller.go

    	if err != nil {
    		logger.Error(err, "Error populating the desired state of world")
    	}
    	go adc.reconciler.Run(ctx)
    	go adc.desiredStateOfWorldPopulator.Run(ctx)
    	go wait.UntilWithContext(ctx, adc.pvcWorker, time.Second)
    	metrics.Register(adc.pvcLister,
    		adc.pvLister,
    		adc.podLister,
    		adc.actualStateOfWorld,
    		adc.desiredStateOfWorld,
    		&adc.volumePluginMgr,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  3. pkg/controller/cronjob/cronjob_controllerv2.go

    	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()
    }
    
    func (jm *ControllerV2) worker(ctx context.Context) {
    	for jm.processNextWorkItem(ctx) {
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  4. pkg/controller/replicaset/replica_set.go

    	if !cache.WaitForNamedCacheSync(rsc.Kind, ctx.Done(), rsc.podListerSynced, rsc.rsListerSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, rsc.worker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    // getReplicaSetsWithSameController returns a list of ReplicaSets with the same
    // owner as the given ReplicaSet.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  5. pkg/controller/resourceclaim/controller.go

    	if !cache.WaitForNamedCacheSync("resource_claim", ctx.Done(), ec.podSynced, ec.podSchedulingSynced, ec.claimsSynced, ec.templatesSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, ec.runWorker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    func (ec *Controller) runWorker(ctx context.Context) {
    	for ec.processNextWorkItem(ctx) {
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top