Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for createWatchChan (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher_test.go

    func TestWatchErrResultNotBlockAfterCancel(t *testing.T) {
    	origCtx, store, _ := testSetup(t)
    	ctx, cancel := context.WithCancel(origCtx)
    	w := store.watcher.createWatchChan(ctx, "/abc", 0, false, false, storage.Everything)
    	// make resultChan and errChan blocking to ensure ordering.
    	w.resultChan = make(chan watch.Event)
    	w.errChan = make(chan error)
    	// The event flow goes like:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 12.3K bytes
    - Viewed (1)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go

    	}
    	startWatchRV, err := w.getStartWatchResourceVersion(ctx, rev, opts)
    	if err != nil {
    		return nil, err
    	}
    	wc := w.createWatchChan(ctx, key, startWatchRV, opts.Recursive, opts.ProgressNotify, opts.Predicate)
    	go wc.run(isInitialEventsEndBookmarkRequired(opts), areInitialEventsRequired(rev, opts))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 10:26:38 UTC 2023
    - 18.9K bytes
    - Viewed (0)
Back to top