Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UntilWithContext (0.17 sec)

  1. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    		// be re-queued until "Done", so no more than one worker handle the same item and
    		// no event missed.
    		go wait.UntilWithContext(ctx, nc.doNodeProcessingPassWorker, time.Second)
    	}
    
    	for i := 0; i < podUpdateWorkerSize; i++ {
    		go wait.UntilWithContext(ctx, nc.doPodProcessingWorker, time.Second)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. pkg/controller/replicaset/replica_set_test.go

    		}
    		close(received)
    		return nil
    	}
    	// Start only the ReplicaSet watcher and the workqueue, send a watch event,
    	// and make sure it hits the sync method.
    	go wait.UntilWithContext(tCtx, manager.worker, 10*time.Millisecond)
    
    	testRSSpec.Name = "foo"
    	fakeWatch.Add(&testRSSpec)
    
    	select {
    	case <-received:
    	case <-time.After(wait.ForeverTestTimeout):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  3. pkg/controller/job/job_controller.go

    	if !cache.WaitForNamedCacheSync("job", ctx.Done(), jm.podStoreSynced, jm.jobStoreSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, jm.worker, time.Second)
    	}
    
    	go wait.UntilWithContext(ctx, jm.orphanWorker, time.Second)
    
    	<-ctx.Done()
    }
    
    // getPodJobs returns a list of Jobs that potentially match a Pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  4. pkg/controller/daemon/daemon_controller.go

    	if !cache.WaitForNamedCacheSync("daemon sets", ctx.Done(), dsc.podStoreSynced, dsc.nodeStoreSynced, dsc.historyStoreSynced, dsc.dsStoreSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, dsc.runWorker, time.Second)
    	}
    
    	go wait.Until(dsc.failedPodsBackoff.GC, BackoffGCInterval, ctx.Done())
    
    	<-ctx.Done()
    }
    
    func (dsc *DaemonSetsController) runWorker(ctx context.Context) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  5. pkg/controller/podautoscaler/horizontal.go

    	defer logger.Info("Shutting down HPA controller")
    
    	if !cache.WaitForNamedCacheSync("HPA", ctx.Done(), a.hpaListerSynced, a.podListerSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, a.worker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    // obj could be an *v1.HorizontalPodAutoscaler, or a DeletionFinalStateUnknown marker item.
    func (a *HorizontalController) updateHPA(old, cur interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
Back to top