Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WatchPredicate (0.28 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)
Back to top