Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for WatchPredicate (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    		resourceVersion = options.ResourceVersion
    		predicate.AllowWatchBookmarks = options.AllowWatchBookmarks
    	}
    	return e.WatchPredicate(ctx, predicate, resourceVersion, options.SendInitialEvents)
    }
    
    // WatchPredicate starts a watch for the items that matches.
    func (e *Store) WatchPredicate(ctx context.Context, p storage.SelectionPredicate, resourceVersion string, sendInitialEvents *bool) (watch.Interface, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	podCreated := objCreated.(*example.Pod)
    
    	watcher, err := registry.WatchPredicate(testContext, matchPodName("foo"), podCreated.ResourceVersion, nil)
    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	defer watcher.Stop()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/index_test.go

    func (c byCapacity) Swap(i, j int) {
    	c.volumes[i], c.volumes[j] = c.volumes[j], c.volumes[i]
    }
    
    func (c byCapacity) Len() int {
    	return len(c.volumes)
    }
    
    // matchStorageCapacity is a matchPredicate used to sort and find volumes
    func matchStorageCapacity(pvA, pvB *v1.PersistentVolume) bool {
    	aQty := pvA.Spec.Capacity[v1.ResourceStorage]
    	bQty := pvB.Spec.Capacity[v1.ResourceStorage]
    	return aQty.Cmp(bQty) <= 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 44K bytes
    - Viewed (0)
Back to top