Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 471 for stopCh (0.15 sec)

  1. pkg/kubelet/prober/prober_manager_test.go

    	setTestProbe(testPod, readiness, v1.Probe{})
    	m := newTestManager()
    	defer cleanup(t, m)
    
    	// Start syncing readiness without leaking goroutine.
    	stopCh := make(chan struct{})
    	go wait.Until(m.extractedReadinessHandling, 0, stopCh)
    	defer func() {
    		close(stopCh)
    		// Send an update to exit extractedReadinessHandling()
    		m.readinessManager.Set(kubecontainer.ContainerID{}, results.Success, &v1.Pod{})
    	}()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/controller/repair.go

    func (c *Repair) RunUntil(onFirstSuccess func(), stopCh chan struct{}) {
    	c.broadcaster.StartRecordingToSink(stopCh)
    	defer c.broadcaster.Shutdown()
    
    	var once sync.Once
    	wait.Until(func() {
    		if err := c.runOnce(); err != nil {
    			runtime.HandleError(err)
    			return
    		}
    		once.Do(onFirstSuccess)
    	}, c.interval, stopCh)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  3. pkg/util/iptables/iptables.go

    					return false, nil
    				}
    			}
    			return true, nil
    		}, stopCh)
    
    		// Poll until stopCh is closed or iptables is flushed
    		err := utilwait.PollUntil(interval, func() (bool, error) {
    			if exists, err := runner.ChainExists(tables[0], canary); exists {
    				return false, nil
    			} else if isResourceError(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 28.6K bytes
    - Viewed (0)
  4. pkg/kubelet/pleg/generic.go

    	g.runningMu.Lock()
    	defer g.runningMu.Unlock()
    	if !g.isRunning {
    		g.isRunning = true
    		g.stopCh = make(chan struct{})
    		go wait.Until(g.Relist, g.relistDuration.RelistPeriod, g.stopCh)
    	}
    }
    
    func (g *GenericPLEG) Stop() {
    	g.runningMu.Lock()
    	defer g.runningMu.Unlock()
    	if g.isRunning {
    		close(g.stopCh)
    		g.isRunning = false
    	}
    }
    
    func (g *GenericPLEG) Update(relistDuration *RelistDuration) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go

    // priority-and-fairness requests.
    func StartPriorityAndFairnessWatermarkMaintenance(stopCh <-chan struct{}) {
    	startWatermarkMaintenance(watermark, stopCh)
    	startWatermarkMaintenance(waitingMark, stopCh)
    }
    
    func setResponseHeaders(classification *PriorityAndFairnessClassification, w http.ResponseWriter) {
    	if classification == nil {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/admission_test.go

    	})
    	handler, informerFactory, err := newHandlerForTest(mockClient)
    	if err != nil {
    		t.Errorf("unexpected error initializing handler: %v", err)
    	}
    
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	informerFactory.Start(stopCh)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. pkg/registry/core/replicationcontroller/storage/storage_test.go

    			return currentObject, nil
    		}
    	}
    	stopCh := make(chan struct{})
    	wg := &sync.WaitGroup{}
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		// continuously submits a patch that updates a label and verifies the label update was effective
    		labelName := "timestamp"
    		for i := 0; ; i++ {
    			select {
    			case <-stopCh:
    				return
    			default:
    				expectedLabelValue := fmt.Sprint(i)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 16 06:57:01 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go

    	// Wait for the completion of a loop that started after sources are all ready, then set hasAddedPods accordingly
    	klog.InfoS("Desired state populator starts to run")
    	wait.PollUntil(dswp.loopSleepDuration, func() (bool, error) {
    		done := sourcesReady.AllReady()
    		dswp.populatorLoop()
    		return done, nil
    	}, stopCh)
    	dswp.hasAddedPodsLock.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  9. cmd/kube-scheduler/app/server.go

    		fmt.Fprintf(os.Stderr, "%v\n", err)
    		os.Exit(1)
    	}
    	cliflag.PrintFlags(cmd.Flags())
    
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	go func() {
    		stopCh := server.SetupSignalHandler()
    		<-stopCh
    		cancel()
    	}()
    
    	cc, sched, err := Setup(ctx, opts, registryOptions...)
    	if err != nil {
    		return err
    	}
    	// add feature enablement metrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. pilot/pkg/bootstrap/certcontroller.go

    					log.Errorf("error watching %v: %v", tlsOptions.KeyFile, err)
    				case <-stop:
    					return
    				}
    			}
    		}()
    		return nil
    	})
    	return nil
    }
    
    func (s *Server) reloadIstiodCert(watchCh <-chan struct{}, stopCh <-chan struct{}) {
    	for {
    		select {
    		case <-stopCh:
    			return
    		case <-watchCh:
    			if err := s.loadIstiodCert(); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top