Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 988 for watcher (0.27 sec)

  1. staging/src/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go

    			watcher, err := t.storage.(rest.Watcher).Watch(ctx, options)
    			if err != nil {
    				t.Errorf("unexpected error: %v, %v", err, action)
    			}
    
    			if err := emitFn(obj, action); err != nil {
    				t.Errorf("unexpected error: %v", err)
    			}
    
    			select {
    			case _, ok := <-watcher.ResultChan():
    				if !ok {
    					t.Errorf("watch channel should be open")
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  2. pkg/webhooks/validation/controller/controller.go

    // shouldn't we be doing this for both validating and mutating webhooks...?
    func (c *Controller) startCaBundleWatcher(stop <-chan struct{}) {
    	if c.o.CABundleWatcher == nil {
    		return
    	}
    	id, watchCh := c.o.CABundleWatcher.AddWatcher()
    	defer c.o.CABundleWatcher.RemoveWatcher(id)
    
    	for {
    		select {
    		case <-watchCh:
    			c.syncAll()
    		case <-stop:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 16:52:19 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_serving_content.go

    	c.queue.Add(workItemKey)
    
    	w, err := fsnotify.NewWatcher()
    	if err != nil {
    		return fmt.Errorf("error creating fsnotify watcher: %v", err)
    	}
    	defer w.Close()
    
    	if err := w.Add(c.certFile); err != nil {
    		return fmt.Errorf("error adding watch for file %s: %v", c.certFile, err)
    	}
    	if err := w.Add(c.keyFile); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. pkg/kube/watcher/configmapwatcher/configmapwatcher.go

    	configMapNamespace string
    	configMapName      string
    	callback           func(*v1.ConfigMap)
    
    	hasSynced atomic.Bool
    }
    
    // NewController returns a new ConfigMap watcher controller.
    func NewController(client kube.Client, namespace, name string, callback func(*v1.ConfigMap)) *Controller {
    	c := &Controller{
    		configMapNamespace: namespace,
    		configMapName:      name,
    		callback:           callback,
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 19 07:11:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. pilot/pkg/bootstrap/server.go

    	// Setup Kubernetes watch filters
    	// Because this relies on meshconfig, it needs to be outside initKubeClient
    	if s.kubeClient != nil {
    		// Build a namespace watcher. This must have no filter, since this is our input to the filter itself.
    		namespaces := kclient.New[*corev1.Namespace](s.kubeClient)
    		filter := namespace.NewDiscoveryNamespacesFilter(namespaces, s.environment.Watcher, s.internalStop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  6. pilot/pkg/trustbundle/trustbundle.go

    	remoteCaCertPool   *x509.CertPool
    	meshConfig         mesh.Watcher
    }
    
    var (
    	trustBundleLog = log.RegisterScope("trustBundle", "Workload mTLS trust bundle logs")
    	remoteTimeout  = 10 * time.Second
    )
    
    // NewTrustBundle returns a new trustbundle
    func NewTrustBundle(remoteCaCertPool *x509.CertPool, meshConfig mesh.Watcher) *TrustBundle {
    	var err error
    	tb := &TrustBundle{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. 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)
    		opts.InformerType = informerType
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. pilot/pkg/model/context.go

    type Environment struct {
    	// Discovery interface for listing services and instances.
    	ServiceDiscovery
    
    	// Config interface for listing routing rules
    	ConfigStore
    
    	// Watcher is the watcher for the mesh config (to be merged into the config store)
    	mesh.Watcher
    
    	// NetworksWatcher (loaded from a config map) provides information about the
    	// set of networks inside a mesh and how to route to endpoints in each
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  9. pilot/pkg/model/push_context_test.go

    				}
    				return
    			}
    			if len(filter.Patches[networking.EnvoyFilter_CLUSTER]) != tt.expectedClusterPatches {
    				t.Errorf("Expect %d envoy filter cluster patches, but got %d", tt.expectedClusterPatches, len(filter.Patches[networking.EnvoyFilter_CLUSTER]))
    			}
    			if len(filter.Patches[networking.EnvoyFilter_LISTENER]) != tt.expectedListenerPatches {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  10. pkg/revisions/tag_watcher.go

    			if rev == "" {
    				return nil
    			}
    			return []string{rev}
    		}, controllers.ObjectHandler(p.queue.AddObject))
    	return p
    }
    
    func (p *tagWatcher) Run(stopCh <-chan struct{}) {
    	if !kube.WaitForCacheSync("tag watcher", stopCh, p.webhooks.HasSynced) {
    		return
    	}
    	// Notify handlers of initial state
    	p.notifyHandlers()
    	p.queue.Run(stopCh)
    }
    
    // AddHandler registers a new handler for updates to tag changes.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top