Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for HasSynced (0.14 sec)

  1. pkg/kube/krt/sync.go

    	WaitUntilSynced(stop <-chan struct{}) bool
    	HasSynced() bool
    }
    
    var (
    	_ Syncer = channelSyncer{}
    	_ Syncer = pollSyncer{}
    )
    
    type channelSyncer struct {
    	name   string
    	synced <-chan struct{}
    }
    
    func (c channelSyncer) WaitUntilSynced(stop <-chan struct{}) bool {
    	return waitForCacheSync(c.name, stop, c.synced)
    }
    
    func (c channelSyncer) HasSynced() bool {
    	select {
    	case <-c.synced:
    		return true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 03 14:25:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/configuration/validating_webhook_manager.go

    		utilruntime.HandleError(fmt.Errorf("error getting webhook configuration: %v", err))
    	}
    	return out
    }
    
    // HasSynced returns true if the initial set of validating webhook configurations
    // has been loaded.
    func (v *validatingWebhookConfigurationManager) HasSynced() bool { return v.hasSynced() }
    
    func (v *validatingWebhookConfigurationManager) getConfiguration() ([]webhook.WebhookAccessor, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 22:43:12 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. pkg/kube/multicluster/component.go

    	defer m.mu.Unlock()
    	// If there is an old one, close it
    	if old, f := m.clusters[cluster]; f {
    		old.Close()
    	}
    	delete(m.clusters, cluster)
    }
    
    func (m *Component[T]) HasSynced() bool {
    	for _, c := range m.All() {
    		if !c.HasSynced() {
    			return false
    		}
    	}
    	return true
    }
    
    type KclientComponent[T controllers.ComparableObject] struct {
    	internal *Component[kclientInternalComponent[T]]
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/configuration/mutating_webhook_manager.go

    		utilruntime.HandleError(fmt.Errorf("error getting webhook configuration: %v", err))
    	}
    	return out
    }
    
    // HasSynced returns true if the initial set of mutating webhook configurations
    // has been loaded.
    func (m *mutatingWebhookConfigurationManager) HasSynced() bool { return m.hasSynced() }
    
    func (m *mutatingWebhookConfigurationManager) getConfiguration() ([]webhook.WebhookAccessor, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 22:43:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. 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)
  6. pkg/kube/multicluster/secretcontroller_test.go

    	tc.Run(stop)
    	retry.UntilOrFail(t, tc.controller.HasSynced, retry.Timeout(2*time.Second))
    }
    
    type informerHandler[T controllers.ComparableObject] struct {
    	client kclient.Client[T]
    }
    
    func (i *informerHandler[T]) Close() {
    	i.client.ShutdownHandlers()
    }
    
    func (i *informerHandler[T]) HasSynced() bool {
    	return i.client.HasSynced()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. pkg/kube/multicluster/secretcontroller.go

    		}
    		if !kube.WaitForCacheSync("multicluster remote secrets", stopCh, c.secrets.HasSynced) {
    			return
    		}
    		log.Infof("multicluster remote secrets controller cache synced in %v", time.Since(t0))
    		c.queue.Run(stopCh)
    		c.handleDelete(c.configClusterID)
    	}()
    	return nil
    }
    
    func (c *Controller) HasSynced() bool {
    	if !c.queue.HasSynced() {
    		log.Debug("secret controller did not sync secrets presented at startup")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. 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)
Back to top