Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,249 for stopCh (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_cafile_content.go

    	// start the loop that watches the CA file until stopCh is closed.
    	go wait.Until(func() {
    		if err := c.watchCAFile(ctx.Done()); err != nil {
    			klog.ErrorS(err, "Failed to watch CA file, will retry later")
    		}
    	}, time.Minute, ctx.Done())
    
    	<-ctx.Done()
    }
    
    func (c *DynamicFileCAContent) watchCAFile(stopCh <-chan struct{}) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/borrowing_test.go

    				QueueSetFactory:        fqs.NewQueueSetFactory(clk),
    			})
    
    			ctx, cancel := context.WithTimeout(context.Background(), 50*time.Second)
    			stopCh := ctx.Done()
    			controllerCompletionCh := make(chan error)
    
    			informerFactory.Start(stopCh)
    
    			status := informerFactory.WaitForCacheSync(ctx.Done())
    			if names := unsynced(status); len(names) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. pkg/kubelet/prober/worker.go

    		// Wait for next probe tick.
    		select {
    		case <-w.stopCh:
    			break probeLoop
    		case <-probeTicker.C:
    		case <-w.manualTriggerCh:
    			// continue
    		}
    	}
    }
    
    // stop stops the probe worker. The worker handles cleanup and removes itself from its manager.
    // It is safe to call stop multiple times.
    func (w *worker) stop() {
    	select {
    	case w.stopCh <- struct{}{}:
    	default: // Non-blocking.
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 27 01:28:06 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  4. pkg/registry/core/rest/storage_core.go

    		wg := sync.WaitGroup{}
    		wg.Add(2)
    		runner := async.NewRunner(
    			func(stopCh chan struct{}) { p.startServiceClusterIPRepair(wg.Done, stopCh) },
    			func(stopCh chan struct{}) { p.startServiceNodePortsRepair(wg.Done, stopCh) },
    		)
    		runner.Start()
    		go func() {
    			defer runner.Stop()
    			<-context.StopCh
    		}()
    
    		// For backward compatibility, we ensure that if we never are able
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  5. pkg/controller/deployment/sync_test.go

    		controller.podListerSynced = alwaysReady
    		for _, rs := range test.oldRSs {
    			informers.Apps().V1().ReplicaSets().Informer().GetIndexer().Add(rs)
    		}
    
    		stopCh := make(chan struct{})
    		defer close(stopCh)
    		informers.Start(stopCh)
    		informers.WaitForCacheSync(stopCh)
    
    		t.Logf(" &test.revisionHistoryLimit: %d", test.revisionHistoryLimit)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/initializer.go

    )
    
    type CELPolicyEvaluator interface {
    	admission.InitializationValidator
    
    	Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
    	HasSynced() bool
    	Run(stopCh <-chan struct{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 861 bytes
    - Viewed (0)
  7. security/pkg/pki/ca/selfsignedcarootcertrotator.go

    		select {
    		case <-ticker.C:
    			rootCertRotatorLog.Info("Check and rotate root cert.")
    			rotator.checkAndRotateRootCert()
    		case _, ok := <-stopCh:
    			if !ok {
    				rootCertRotatorLog.Info("Received stop signal, so stop the root cert rotator.")
    				if ticker != nil {
    					ticker.Stop()
    				}
    				return
    			}
    		}
    	}
    }
    
    // checkAndRotateRootCert decides whether root cert should be refreshed, and rotates
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/finalizer/crd_finalizer.go

    }
    
    func (c *CRDFinalizer) Run(workers int, stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.Info("Starting CRDFinalizer")
    	defer klog.Info("Shutting down CRDFinalizer")
    
    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.Until(c.runWorker, time.Second, stopCh)
    	}
    
    	<-stopCh
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/status/naming_controller.go

    		return err
    	}
    
    	return nil
    }
    
    func (c *NamingConditionController) Run(stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.Info("Starting NamingConditionController")
    	defer klog.Info("Shutting down NamingConditionController")
    
    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/volume_manager.go

    }
    
    func (vm *volumeManager) Run(sourcesReady config.SourcesReady, stopCh <-chan struct{}) {
    	defer runtime.HandleCrash()
    
    	if vm.kubeClient != nil {
    		// start informer for CSIDriver
    		go vm.volumePluginMgr.Run(stopCh)
    	}
    
    	go vm.desiredStateOfWorldPopulator.Run(sourcesReady, stopCh)
    	klog.V(2).InfoS("The desired_state_of_world populator starts")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top