Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 505 for stopCh (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go

    }
    
    // Run spawns the secure http server. It only returns if stopCh is closed
    // or the secure port cannot be listened on initially.
    //
    // Deprecated: use RunWithContext instead. Run will not get removed to avoid
    // breaking consumers, but should not be used in new code.
    func (s preparedGenericAPIServer) Run(stopCh <-chan struct{}) error {
    	ctx := wait.ContextForChannel(stopCh)
    	return s.RunWithContext(ctx)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top