Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 569 for stopCh (0.12 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/apiapproval/apiapproval_controller.go

    func (c *KubernetesAPIApprovalPolicyConformantConditionController) Run(workers int, stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.Infof("Starting KubernetesAPIApprovalPolicyConformantConditionController")
    	defer klog.Infof("Shutting down KubernetesAPIApprovalPolicyConformantConditionController")
    
    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/dropped_requests_tracker_test.go

    					time.Sleep(25 * time.Millisecond)
    				}
    			}()
    		}
    	}
    	// Time-advancing goroutine.
    	stopCh := make(chan struct{})
    	timeWg := sync.WaitGroup{}
    	timeWg.Add(1)
    	go func() {
    		defer timeWg.Done()
    		for {
    			select {
    			case <-stopCh:
    				return
    			case <-time.After(25 * time.Millisecond):
    				fakeClock.Step(time.Second)
    			}
    		}
    	}()
    
    	b.StartTimer()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 26 13:50:25 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/nonstructuralschema/nonstructuralschema_controller.go

    }
    
    // Run starts the controller.
    func (c *ConditionController) Run(workers int, stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.Infof("Starting NonStructuralSchemaConditionController")
    	defer klog.Infof("Shutting down NonStructuralSchemaConditionController")
    
    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapiv3/controller.go

    func (c *Controller) Run(openAPIV3Service *handler3.OpenAPIService, stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    	defer klog.Infof("Shutting down OpenAPI V3 controller")
    
    	klog.Infof("Starting OpenAPI V3 controller")
    
    	c.openAPIV3Service = openAPIV3Service
    
    	if !cache.WaitForCacheSync(stopCh, c.crdsSynced) {
    		utilruntime.HandleError(fmt.Errorf("timed out waiting for caches to sync"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. plugin/pkg/admission/podnodeselector/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)
    
    	pod := &api.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "testPod", Namespace: "testNamespace"},
    	}
    
    	tests := []struct {
    		defaultNodeSelector             string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/ingress/status.go

    	pods           kclient.Client[*corev1.Pod]
    	services       kclient.Client[*corev1.Service]
    	nodes          kclient.Client[*corev1.Node]
    }
    
    // Run the syncer until stopCh is closed
    func (s *StatusSyncer) Run(stopCh <-chan struct{}) {
    	s.queue.Run(stopCh)
    	controllers.ShutdownAll(s.services, s.nodes, s.pods, s.ingressClasses, s.ingresses)
    }
    
    // NewStatusSyncer creates a new instance
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_serving_content.go

    	// start the loop that watches the cert and key files until stopCh is closed.
    	go wait.Until(func() {
    		if err := c.watchCertKeyFile(ctx.Done()); err != nil {
    			klog.ErrorS(err, "Failed to watch cert and key file, will retry later")
    		}
    	}, time.Minute, ctx.Done())
    
    	<-ctx.Done()
    }
    
    func (c *DynamicCertKeyPairContent) watchCertKeyFile(stopCh <-chan struct{}) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. pkg/controlplane/controller/crdregistration/crdregistration_controller.go

    		go wait.Until(c.runWorker, time.Second, stopCh)
    	}
    
    	// wait until we're told to stop
    	<-stopCh
    }
    
    // WaitForInitialSync blocks until the initial set of CRD resources has been processed
    func (c *crdRegistrationController) WaitForInitialSync() {
    	<-c.syncedInitialSet
    }
    
    func (c *crdRegistrationController) runWorker() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/controller.go

    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    	defer klog.Infof("Shutting down OpenAPI controller")
    
    	klog.Infof("Starting OpenAPI controller")
    
    	c.staticSpec = staticSpec
    	c.openAPIService = openAPIService
    
    	if !cache.WaitForCacheSync(stopCh, c.crdsSynced) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. 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)
Back to top