Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 353 for watcher (0.14 sec)

  1. cni/pkg/nodeagent/cni-watcher.go

    John Howard <******@****.***> 1717709495 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    		// cluster-wide watchers scoped by name
    		for _, watcher := range c.watchers.allWatchers[namespacedName{name: name}] {
    			c.watchersBuffer = append(c.watchersBuffer, watcher)
    		}
    	}
    	// cluster-wide watchers unscoped by name
    	for _, watcher := range c.watchers.allWatchers[namespacedName{}] {
    		c.watchersBuffer = append(c.watchersBuffer, watcher)
    	}
    
    	if supported {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  3. pilot/pkg/leaderelection/leaderelection_test.go

    	watcher := &fakeDefaultWatcher{"foo"}
    	// First pod becomes the leader
    	_, stop := createPerRevisionElection(t, "pod1", "foo", watcher, true, client)
    	// A new pod is not the leader
    	_, stop2 := createPerRevisionElection(t, "pod2", "foo", watcher, false, client)
    	close(stop2)
    	close(stop)
    	t.Log("drop")
    	// After leader is lost, we can take over
    	_, stop3 := createPerRevisionElection(t, "pod2", "foo", watcher, true, client)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go

    	}
    	watchers0 := watchers.popExpiredWatchersThreadUnsafe()
    	if len(watchers0) != 0 {
    		t.Errorf("unexpected bucket size: %#v", watchers0)
    	}
    
    	clock.Step(10 * time.Second)
    	watchers1 := watchers.popExpiredWatchersThreadUnsafe()
    	if len(watchers1) != 1 || len(watchers1[0]) != 1 {
    		t.Errorf("unexpected bucket size: %v", watchers1)
    	}
    	watchers1 = watchers.popExpiredWatchersThreadUnsafe()
    	if len(watchers1) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/namespacecontroller_test.go

    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func TestNamespaceController(t *testing.T) {
    	client := kube.NewFakeClient()
    	t.Cleanup(client.Shutdown)
    	watcher := keycertbundle.NewWatcher()
    	caBundle := []byte("caBundle")
    	watcher.SetAndNotify(nil, nil, caBundle)
    	meshWatcher := mesh.NewTestWatcher(&meshconfig.MeshConfig{})
    	stop := test.NewStop(t)
    	discoveryNamespacesFilter := filter.NewDiscoveryNamespacesFilter(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. cni/pkg/install/install.go

    	watcher, err := util.CreateFileWatcher(targets...)
    	if err != nil {
    		return err
    	}
    	defer func() {
    		setNotReady(in.isReady)
    		watcher.Close()
    	}()
    
    	// Before we process whether any file events have been triggered, we must check that the file is correct
    	// at this moment, and if not, yield. This is to catch other CNIs which might have mutated the file between
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    func (f *FakeWatcher) Stop() {
    	f.Lock()
    	defer f.Unlock()
    	if !f.stopped {
    		klog.V(4).Infof("Stopping fake watcher.")
    		close(f.result)
    		f.stopped = true
    	}
    }
    
    func (f *FakeWatcher) IsStopped() bool {
    	f.Lock()
    	defer f.Unlock()
    	return f.stopped
    }
    
    // Reset prepares the watcher to be reused.
    func (f *FakeWatcher) Reset() {
    	f.Lock()
    	defer f.Unlock()
    	f.stopped = false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
  8. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    			t.Errorf("Unexpected object watched: %s, expected %s", a, e)
    		}
    		watched++
    	}
    	// We expect at least N events to be delivered, depending on the implementation.
    	// For now, this number is smallest for Cacher and it equals 10 (size of the out buffer).
    	if watched < 10 {
    		t.Errorf("Unexpected number of events: %v, expected: %v", watched, totalPods)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  9. pkg/kube/kclient/crdwatcher.go

    	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))
    	c.crds = NewMetadata(client, gvr.CustomResourceDefinition, Filter{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. cni/pkg/install/cniconfig.go

    	if !chained {
    		if len(cniConfName) == 0 {
    			cniConfName = "YYY-istio-cni.conf"
    		}
    		return filepath.Join(mountedCNINetDir, cniConfName), nil
    	}
    
    	watcher, err := util.CreateFileWatcher(mountedCNINetDir)
    	if err != nil {
    		return "", err
    	}
    	defer watcher.Close()
    
    	for len(cniConfName) == 0 {
    		cniConfName, err = getDefaultCNINetwork(mountedCNINetDir)
    		if err == nil {
    			break
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top