Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 471 for stopCh (0.14 sec)

  1. cluster/images/etcd-version-monitor/etcd-version-monitor.go

    	// Register the metrics we defined above with prometheus.
    	customMetricRegistry.MustRegister(etcdVersion)
    
    	// Spawn threads for periodically scraping etcd version metrics.
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    	go getVersionPeriodically(stopCh)
    
    	// Serve our metrics on listenAddress/metricsPath.
    	klog.Infof("Listening on: %v", listenAddress)
    	http.Handle(metricsPath, metrics.HandlerFor(gatherer, metrics.HandlerOpts{}))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 16 06:50:02 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. pkg/controller/deployment/deployment_controller_test.go

    	c, informers, err := f.newController(ctx)
    	if err != nil {
    		f.t.Fatalf("error creating Deployment controller: %v", err)
    	}
    	if startInformers {
    		stopCh := make(chan struct{})
    		defer close(stopCh)
    		informers.Start(stopCh)
    	}
    
    	err = c.syncDeployment(ctx, deploymentName)
    	if !expectError && err != nil {
    		f.t.Errorf("error syncing deployment: %v", err)
    	} else if expectError && err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. pkg/kube/multicluster/secretcontroller.go

    		if features.LocalClusterSecretWatcher && features.ExternalIstiod {
    			c.secrets.Start(stopCh)
    		}
    		if !kube.WaitForCacheSync("multicluster remote secrets", stopCh, c.secrets.HasSynced) {
    			return
    		}
    		log.Infof("multicluster remote secrets controller cache synced in %v", time.Since(t0))
    		c.queue.Run(stopCh)
    		c.handleDelete(c.configClusterID)
    	}()
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 12.7K 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. 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)
  6. 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)
  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