Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CrdWatcher (0.2 sec)

  1. pkg/kube/kclient/crdwatcher.go

    	// Unfortunate hack needed to avoid circular imports
    	kube.NewCrdWatcher = newCrdWatcher
    }
    
    // newCrdWatcher returns a new CRD watcher controller.
    func newCrdWatcher(client kube.Client) kubetypes.CrdWatcher {
    	c := &crdWatcher{
    		running:   make(chan struct{}),
    		callbacks: map[string][]func(){},
    	}
    
    	c.queue = controllers.NewQueue("crd watcher",
    		controllers.WithReconciler(c.Reconcile))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. pkg/kube/kclient/crdwatcher_test.go

    )
    
    // TestCRDWatcherRace tests for a previous bug where callbacks may be skipped if added during a handler
    func TestCRDWatcherRace(t *testing.T) {
    	stop := test.NewStop(t)
    	c := kube.NewFakeClient()
    	ctl := c.CrdWatcher()
    	vsCalls := atomic.NewInt32(0)
    
    	// Race callback and CRD creation
    	go func() {
    		if ctl.KnownOrCallback(gvr.VirtualService, func(s <-chan struct{}) {
    			assert.Equal(t, s, stop)
    			// Happened async
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. pkg/kube/client.go

    	GatewayAPI() gatewayapiclient.Interface
    
    	// Informers returns an informer factory
    	Informers() informerfactory.InformerFactory
    
    	// CrdWatcher returns the CRD watcher for this client
    	CrdWatcher() kubetypes.CrdWatcher
    
    	// ObjectFilter returns an object filter that can be used to filter out unwanted objects based on configuration.
    	// This must be set on a client with SetObjectFilter.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  4. pkg/kube/kclient/client.go

    	c kube.Client,
    	gvr schema.GroupVersionResource,
    	informerType kubetypes.InformerType,
    	filter Filter,
    ) Informer[T] {
    	watcher := c.CrdWatcher()
    	if watcher == nil {
    		log.Fatalf("NewDelayedInformer called without a CrdWatcher enabled")
    	}
    	delay := newDelayedFilter(gvr, watcher)
    	inf := func() informerfactory.StartableInformer {
    		opts := ToOpts(c, gvr, filter)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top