Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for informersStarted (0.2 sec)

  1. pkg/controller/resourcequota/resource_quota_monitor.go

    // NewMonitor creates a new instance of a QuotaMonitor
    func NewMonitor(informersStarted <-chan struct{}, informerFactory informerfactory.InformerFactory, ignoredResources map[schema.GroupResource]struct{}, resyncPeriod controller.ResyncPeriodFunc, replenishmentFunc ReplenishmentFunc, registry quota.Registry, updateFilter UpdateFilter) *QuotaMonitor {
    	return &QuotaMonitor{
    		informersStarted: informersStarted,
    		informerFactory:  informerFactory,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. cmd/kube-controller-manager/app/core_test.go

    		ctx := ControllerContext{
    			ClientBuilder:                   testClientBuilder,
    			InformerFactory:                 testInformerFactory,
    			ObjectOrMetadataInformerFactory: testInformerFactory,
    			InformersStarted:                make(chan struct{}),
    		}
    		for controllerName, controllerDesc := range controllerDescriptorMap {
    			_, _, err := controllerDesc.GetInitFunc()(context.TODO(), ctx, controllerName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 11:28:01 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. pkg/controller/garbagecollector/graph_builder.go

    	// dependencyGraphBuilder
    	monitors    monitors
    	monitorLock sync.RWMutex
    	// informersStarted is closed after after all of the controllers have been initialized and are running.
    	// After that it is safe to start them here, before that it is not.
    	informersStarted <-chan struct{}
    
    	// stopCh drives shutdown. When a receive from it unblocks, monitors will shut down.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  4. cmd/kube-controller-manager/app/controllermanager.go

    	LoopMode ControllerLoopMode
    
    	// InformersStarted is closed after all of the controllers have been initialized and are running.  After this point it is safe,
    	// for an individual controller to start the shared informers. Before it is closed, they should not.
    	InformersStarted chan struct{}
    
    	// ResyncPeriod generates a duration each time it is invoked; this is so that
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 13:03:53 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  5. pkg/controller/resourcequota/resource_quota_controller.go

    	DiscoveryFunc NamespacedResourcesFunc
    	// A function that returns the list of resources to ignore
    	IgnoredResourcesFunc func() map[schema.GroupResource]struct{}
    	// InformersStarted knows if informers were started.
    	InformersStarted <-chan struct{}
    	// InformerFactory interfaces with informers.
    	InformerFactory informerfactory.InformerFactory
    	// Controls full resync of objects monitored for replenishment.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. cmd/kube-controller-manager/app/core.go

    		ReplenishmentResyncPeriod: controllerContext.ResyncPeriod,
    		DiscoveryFunc:             discoveryFunc,
    		IgnoredResourcesFunc:      quotaConfiguration.IgnoredResources,
    		InformersStarted:          controllerContext.InformersStarted,
    		Registry:                  generic.NewRegistry(quotaConfiguration.Evaluators()),
    		UpdateFilter:              quotainstall.DefaultUpdateFilter(),
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 39K bytes
    - Viewed (0)
  7. pkg/controller/garbagecollector/garbagecollector.go

    	mapper meta.ResettableRESTMapper,
    	ignoredResources map[schema.GroupResource]struct{},
    	sharedInformers informerfactory.InformerFactory,
    	informersStarted <-chan struct{},
    ) (*GarbageCollector, error) {
    	graphBuilder := NewDependencyGraphBuilder(ctx, metadataClient, mapper, ignoredResources, sharedInformers, informersStarted)
    	return NewComposedGarbageCollector(ctx, kubeClient, metadataClient, mapper, graphBuilder)
    }
    
    func NewComposedGarbageCollector(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  8. pkg/controller/resourcequota/resource_quota_controller_test.go

    		IgnoredResourcesFunc:      quotaConfiguration.IgnoredResources,
    		DiscoveryFunc:             discoveryFunc,
    		Registry:                  generic.NewRegistry(quotaConfiguration.Evaluators()),
    		InformersStarted:          alwaysStarted,
    		InformerFactory:           informerFactory,
    	}
    	_, ctx := ktesting.NewTestContext(t)
    	qc, err := NewController(ctx, resourceQuotaControllerOptions)
    	if err != nil {
    		t.Fatal(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  9. pkg/controller/garbagecollector/garbagecollector_test.go

    	}
    
    	alwaysStarted := make(chan struct{})
    	close(alwaysStarted)
    	for _, scenario := range testScenarios {
    		logger, _ := ktesting.NewTestContext(t)
    
    		dependencyGraphBuilder := &GraphBuilder{
    			informersStarted: alwaysStarted,
    			graphChanges:     workqueue.NewTypedRateLimitingQueue(workqueue.DefaultTypedControllerRateLimiter[*event]()),
    			uidToNode: &concurrentUIDToNode{
    				uidToNodeLock: sync.RWMutex{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top