Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 85 for HasSynced (0.24 sec)

  1. 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)
  2. 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)
  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/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)
  5. 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)
  6. 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)
  7. pkg/kube/multicluster/clusterstore.go

    	out := 0
    	for _, clusterMap := range c.remoteClusters {
    		out += len(clusterMap)
    	}
    	return out
    }
    
    func (c *ClusterStore) HasSynced() bool {
    	c.RLock()
    	defer c.RUnlock()
    	for _, clusterMap := range c.remoteClusters {
    		for _, cl := range clusterMap {
    			if !cl.HasSynced() {
    				log.Debugf("remote cluster %s registered informers have not been synced up yet", cl.ID)
    				return false
    			}
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 07 15:01:12 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/initializer.go

    	"k8s.io/apiserver/pkg/admission"
    )
    
    type CELPolicyEvaluator interface {
    	admission.InitializationValidator
    
    	Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
    	HasSynced() bool
    	Run(stopCh <-chan struct{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 861 bytes
    - Viewed (0)
  9. pkg/config/mesh/kubemesh/watcher.go

    			return
    		}
    		w.HandleMeshConfig(meshConfig)
    	})
    
    	go c.Run(stop)
    
    	// Ensure the ConfigMap is initially loaded if present.
    	if !client.WaitForCacheSync("configmap watcher", stop, c.HasSynced) {
    		log.Error("failed to wait for cache sync")
    	}
    	return w
    }
    
    func AddUserMeshConfig(client kube.Client, watcher mesh.Watcher, namespace, key, userMeshConfig string, stop <-chan struct{}) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 25 20:54:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/namespacecontroller_test.go

    		meshWatcher,
    		stop,
    	)
    	kube.SetObjectFilter(client, discoveryNamespacesFilter)
    	nc := NewNamespaceController(client, watcher)
    	client.RunAndWait(stop)
    	go nc.Run(stop)
    	retry.UntilOrFail(t, nc.queue.HasSynced)
    
    	expectedData := map[string]string{
    		constants.CACertNamespaceConfigMapDataName: string(caBundle),
    	}
    	createNamespace(t, client.Kube(), "foo", nil)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top