Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,038 for stopCh (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go

    		workers: workers,
    		stopCh:  stopCh,
    		config:  config,
    	}
    
    	// The queue underneath is starting a goroutine for metrics
    	// exportint that is only stopped on calling ShutDown.
    	// Given that QuotaEvaluator is created for each layer of apiserver
    	// and often not started for some of those (e.g. aggregated apiserver)
    	// we explicitly shut it down on stopCh signal even if it wasn't
    	// effectively started.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/healthz.go

    // that we can register that the api-server is no longer ready while we attempt to gracefully
    // shutdown.
    func (s *GenericAPIServer) addReadyzShutdownCheck(stopCh <-chan struct{}) error {
    	return s.AddReadyzChecks(healthz.NewShutdownHealthz(stopCh))
    }
    
    // installHealthz creates the healthz endpoint for this server
    func (s *GenericAPIServer) installHealthz() {
    	s.healthzRegistry.installHandler(s.Handler.NonGoRestfulMux)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top