Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 197 for HasSynced (0.1 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/interfaces.go

    	Hooks() []H
    
    	// Run the source. This method should be called only once at startup.
    	Run(ctx context.Context) error
    
    	// HasSynced returns true if the source has completed its initial sync.
    	HasSynced() bool
    }
    
    // Dispatcher dispatches evaluates an admission request against the currently
    // active hooks returned by the source.
    type Dispatcher[H Hook] interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. pkg/kube/multicluster/cluster.go

    		}
    	}
    	if !c.Client.RunAndWait(c.stop) {
    		log.Warnf("remote cluster %s failed to sync", c.ID)
    		return
    	}
    	for _, h := range syncers {
    		if !kube.WaitForCacheSync("cluster"+string(c.ID), c.stop, h.HasSynced) {
    			log.Warnf("remote cluster %s failed to sync handler", c.ID)
    			return
    		}
    	}
    
    	c.initialSync.Store(true)
    }
    
    // Stop closes the stop channel, if is safe to be called multi times.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. pkg/controller/ttl/ttl_controller.go

    			ttlc.updateNode(logger, old, newObj)
    		},
    		DeleteFunc: ttlc.deleteNode,
    	})
    
    	ttlc.nodeStore = listers.NewNodeLister(nodeInformer.Informer().GetIndexer())
    	ttlc.hasSynced = nodeInformer.Informer().HasSynced
    
    	return ttlc
    }
    
    type ttlBoundary struct {
    	sizeMin    int
    	sizeMax    int
    	ttlSeconds int
    }
    
    var (
    	ttlBoundaries = []ttlBoundary{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. pkg/webhooks/webhookpatch.go

    	go w.startCaBundleWatcher(stopChan)
    	w.webhooks.Start(stopChan)
    	kubelib.WaitForCacheSync("webhook patcher", stopChan, w.webhooks.HasSynced)
    	w.queue.Run(stopChan)
    }
    
    func (w *WebhookCertPatcher) HasSynced() bool {
    	return w.queue.HasSynced()
    }
    
    // webhookPatchTask takes the result of patchMutatingWebhookConfig and modifies the result for use in task queue
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 28 00:36:38 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. pkg/kube/krt/informer.go

    		i.inf.AddEventHandler(informerEventHandler[I](func(o Event[I], initialSync bool) {
    			f([]Event[I]{o}, initialSync)
    		}))
    	}
    	return pollSyncer{
    		name: fmt.Sprintf("%v handler", i.name()),
    		f:    i.inf.HasSynced,
    	}
    }
    
    func informerEventHandler[I controllers.ComparableObject](handler func(o Event[I], initialSync bool)) cache.ResourceEventHandler {
    	return controllers.EventHandler[I]{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 11:01:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/ingress/controller.go

    		c.onServiceEvent(o)
    	}))
    
    	return c
    }
    
    func (c *controller) Run(stop <-chan struct{}) {
    	kube.WaitForCacheSync("ingress", stop, c.ingress.HasSynced, c.services.HasSynced, c.classes.HasSynced)
    	c.queue.Run(stop)
    	controllers.ShutdownAll(c.ingress, c.services, c.classes)
    }
    
    func (c *controller) shouldProcessIngress(mesh *meshconfig.MeshConfig, i *knetworking.Ingress) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 03:53:05 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. pilot/pkg/model/controller.go

    	AppendWorkloadHandler(f func(*WorkloadInstance, Event))
    
    	// Run until a signal is received
    	Run(stop <-chan struct{})
    
    	// HasSynced returns true after initial cache synchronization is complete
    	HasSynced() bool
    }
    
    // AggregateController is a wrapper of Controller, it supports registering handlers of a specific cluster。
    type AggregateController interface {
    	Controller
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 25 06:54:32 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. pkg/kube/kubetypes/types.go

    	ObjectTransform func(obj any) (any, error)
    }
    
    // CrdWatcher exposes an interface to watch CRDs
    type CrdWatcher interface {
    	// HasSynced returns true once all existing state has been synced.
    	HasSynced() bool
    	// KnownOrCallback returns `true` immediately if the resource is known.
    	// If it is not known, `false` is returned. If the resource is later added, the callback will be triggered.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. pkg/kube/kclient/client.go

    }
    
    func (n *informerClient[T]) HasSynced() bool {
    	if !n.informer.HasSynced() {
    		return false
    	}
    	n.handlerMu.RLock()
    	defer n.handlerMu.RUnlock()
    	// HasSynced is fast, so doing it under the lock is okay
    	for _, g := range n.registeredHandlers {
    		if !g.registration.HasSynced() {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/serviceimportcache.go

    }
    
    func (ic *serviceImportCacheImpl) HasSynced() bool {
    	return ic.serviceImports.HasSynced()
    }
    
    type disabledServiceImportCache struct{}
    
    var _ serviceImportCache = disabledServiceImportCache{}
    
    func (c disabledServiceImportCache) Run(stop <-chan struct{}) {}
    
    func (c disabledServiceImportCache) HasSynced() bool {
    	return true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top