Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 89 for HasSynced (0.12 sec)

  1. pkg/revisions/tag_watcher.go

    		return
    	}
    	// Notify handlers of initial state
    	p.notifyHandlers()
    	p.queue.Run(stopCh)
    }
    
    // AddHandler registers a new handler for updates to tag changes.
    func (p *tagWatcher) AddHandler(handler TagHandler) {
    	p.handlers = append(p.handlers, handler)
    }
    
    func (p *tagWatcher) HasSynced() bool {
    	return p.queue.HasSynced()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. pkg/kube/kclient/crdwatcher.go

    		log.Infof("CRD %v version %v is below minimum version %v, ignoring", crd.Name, fv, mv)
    		return false
    	}
    	return true
    }
    
    // HasSynced returns whether the underlying cache has synced and the callback has been called at least once.
    func (c *crdWatcher) HasSynced() bool {
    	return c.queue.HasSynced()
    }
    
    // Run starts the controller. This must be called.
    func (c *crdWatcher) Run(stop <-chan struct{}) {
    	c.mutex.Lock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/serviceexportcache.go

    	// ExportedServices returns the list of services that are exported in this cluster. Used for debugging.
    	ExportedServices() []exportedService
    	Run(stop <-chan struct{})
    
    	// HasSynced indicates whether the kube createClient has synced for the watched resources.
    	HasSynced() bool
    }
    
    // newServiceExportCache creates a new serviceExportCache that observes the given cluster.
    func newServiceExportCache(c *Controller) serviceExportCache {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. pkg/kube/kclient/interfaces.go

    	AddEventHandler(h cache.ResourceEventHandler)
    	// HasSynced returns true when the informer is initially populated and that all handlers added
    	// via AddEventHandler have been called with the initial state.
    	// note: this differs from a standard informer HasSynced, which does not check handlers have been called.
    	HasSynced() bool
    	// ShutdownHandlers terminates all handlers added by AddEventHandler.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 05:09:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. pilot/pkg/config/memory/controller_test.go

    	var v int32
    	ctl := memory.NewController(store)
    
    	ctl.RegisterHasSyncedHandler(func() bool {
    		return atomic.LoadInt32(&v) > 0
    	})
    
    	if ctl.HasSynced() {
    		t.Error("has synced but should not")
    	}
    	atomic.StoreInt32(&v, 1)
    	if !ctl.HasSynced() {
    		t.Error("has not synced but should")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 18 15:37:45 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/node/graph_populator.go

    	synced := []cache.InformerSynced{
    		podHandler.HasSynced, pvsHandler.HasSynced, attachHandler.HasSynced,
    	}
    
    	if slices != nil {
    		sliceHandler, _ := slices.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    			AddFunc:    g.addResourceSlice,
    			UpdateFunc: nil, // Not needed, NodeName is immutable.
    			DeleteFunc: g.deleteResourceSlice,
    		})
    		synced = append(synced, sliceHandler.HasSynced)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. pilot/pkg/controllers/untaint/nodeuntainter.go

    			n.queue.AddObject(o.New)
    		}
    	})
    }
    
    func (n *NodeUntainter) HasSynced() bool {
    	return n.queue.HasSynced()
    }
    
    func (n *NodeUntainter) Run(stop <-chan struct{}) {
    	kubelib.WaitForCacheSync("node untainer", stop, n.nodesClient.HasSynced, n.podsClient.HasSynced)
    	n.queue.Run(stop)
    	n.podsClient.ShutdownHandlers()
    	n.nodesClient.ShutdownHandlers()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. pkg/test/csrctrl/controllers/csr_controller.go

    	}
    	return nil
    }
    
    func (s *Signer) Run(stop <-chan struct{}) {
    	kube.WaitForCacheSync("csr", stop, s.csrs.HasSynced)
    	s.queue.Run(stop)
    }
    
    func (s *Signer) HasSynced() bool {
    	return s.queue.HasSynced()
    }
    
    // isCertificateRequestApproved returns true if a certificate request has the
    // "Approved" condition and no "Denied" conditions; false otherwise.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. pkg/queue/instance.go

    	Closed() <-chan struct{}
    }
    
    type Instance interface {
    	baseInstance
    	// HasSynced returns true once the queue has synced.
    	// Syncing indicates that all items in the queue *before* Run was called have been processed.
    	HasSynced() bool
    }
    
    type queueImpl struct {
    	delay     time.Duration
    	tasks     []*queueTask
    	cond      *sync.Cond
    	closing   bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller.go

    	// clean up
    	waitGroup.Wait()
    
    	// Only way for workers to ever stop is for caller to cancel the context
    	return ctx.Err()
    }
    
    func (c *controller[T]) HasSynced() bool {
    	return c.hasProcessed.HasSynced()
    }
    
    func (c *controller[T]) runWorker() {
    	for {
    		key, shutdown := c.queue.Get()
    		if shutdown {
    			return
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top