Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,432 for stopCh (0.53 sec)

  1. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    		}
    	}, c.endpointInterval, stopCh)
    }
    
    // Stop cleans up this apiserver's peer endpoint leases.
    func (c *PeerEndpointLeaseController) Stop() {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    
    	select {
    	case <-c.stopCh:
    		return // only close once
    	default:
    		close(c.stopCh)
    	}
    	finishedReconciling := make(chan struct{})
    	go func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/secure_serving.go

    			s.Cert.AddListener(dynamicCertificateController)
    		}
    		// generate a context from stopCh. This is to avoid modifying files which are relying on apiserver
    		// TODO: See if we can pass ctx to the current method
    		ctx, cancel := context.WithCancel(context.Background())
    		go func() {
    			select {
    			case <-stopCh:
    				cancel() // stopCh closed, so cancel our context
    			case <-ctx.Done():
    			}
    		}()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 20:54:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer.go

    	authz authorizer.Authorizer,
    	featureGates featuregate.FeatureGate,
    	stopCh <-chan struct{},
    	restMapper meta.RESTMapper,
    ) pluginInitializer {
    	return pluginInitializer{
    		externalClient:    extClientset,
    		dynamicClient:     dynamicClient,
    		externalInformers: extInformers,
    		authorizer:        authz,
    		featureGates:      featureGates,
    		stopCh:            stopCh,
    		restMapper:        restMapper,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. pkg/controlplane/controller/apiserverleasegc/gc_controller.go

    }
    
    // Run starts one worker.
    func (c *Controller) Run(stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer klog.Infof("Shutting down apiserver lease garbage collector")
    
    	klog.Infof("Starting apiserver lease garbage collector")
    
    	// we have a personal informer that is narrowly scoped, start it.
    	go c.leaseInformer.Run(stopCh)
    
    	if !cache.WaitForCacheSync(stopCh, c.leasesSynced) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 25 03:27:44 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/establish/establishing_controller.go

    }
    
    // Run starts the EstablishingController.
    func (ec *EstablishingController) Run(stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer ec.queue.ShutDown()
    
    	klog.Info("Starting EstablishingController")
    	defer klog.Info("Shutting down EstablishingController")
    
    	if !cache.WaitForCacheSync(stopCh, ec.crdSynced) {
    		return
    	}
    
    	// only start one worker thread since its a slow moving API
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/namespacecontroller.go

    	}))
    	return c
    }
    
    // Run starts the NamespaceController until a value is sent to stopCh.
    func (nc *NamespaceController) Run(stopCh <-chan struct{}) {
    	if !kube.WaitForCacheSync("namespace controller", stopCh, nc.namespaces.HasSynced, nc.configmaps.HasSynced) {
    		return
    	}
    
    	go nc.startCaBundleWatcher(stopCh)
    	nc.queue.Run(stopCh)
    	controllers.ShutdownAll(nc.configmaps, nc.namespaces)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. pkg/scheduler/metrics/metric_recorder.go

    	IsStoppedCh chan struct{}
    }
    
    func NewMetricsAsyncRecorder(bufferSize int, interval time.Duration, stopCh <-chan struct{}) *MetricAsyncRecorder {
    	recorder := &MetricAsyncRecorder{
    		bufferCh:    make(chan *metric, bufferSize),
    		bufferSize:  bufferSize,
    		interval:    interval,
    		stopCh:      stopCh,
    		IsStoppedCh: make(chan struct{}),
    	}
    	go recorder.run()
    	return recorder
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 16 07:27:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/wait/backoff.go

    		// it is possible for this to race, meaning we could
    		// trigger t.C and stopCh, and t.C select falls through.
    		// In order to mitigate we re-check stopCh at the beginning
    		// of every loop to prevent extra executions of f().
    		select {
    		case <-stopCh:
    			if !t.Stop() {
    				<-t.C()
    			}
    			return
    		case <-t.C():
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  9. pkg/kubelet/certificate/transport.go

    // certificate.
    //
    // stopCh should be used to indicate when the transport is unused and doesn't need
    // to continue checking the manager.
    func UpdateTransport(stopCh <-chan struct{}, clientConfig *restclient.Config, clientCertificateManager certificate.Manager, exitAfter time.Duration) (func(), error) {
    	return updateTransport(stopCh, 10*time.Second, clientConfig, clientCertificateManager, exitAfter)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 08 13:57:45 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  10. pkg/kubelet/runtimeclass/testing/fake_manager.go

    // Returns a function to stop the manager, which should be called with a defer:
    //
    //	defer StartManagerSync(t, m)()
    func StartManagerSync(m *runtimeclass.Manager) func() {
    	stopCh := make(chan struct{})
    	m.Start(stopCh)
    	m.WaitForCacheSync(stopCh)
    	return func() {
    		close(stopCh)
    	}
    }
    
    // NewRuntimeClass is a helper to generate a RuntimeClass resource with
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 2.1K bytes
    - Viewed (0)
Back to top