- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,558 for Watches (0.43 sec)
-
pkg/volume/flexvolume/fake_watcher.go
utilfs "k8s.io/kubernetes/pkg/util/filesystem" ) // Mock filesystem watcher type fakeWatcher struct { watches []string // List of watches added by the prober, ordered from least recent to most recent. eventHandler utilfs.FSEventHandler } var _ utilfs.FSWatcher = &fakeWatcher{} func newFakeWatcher() *fakeWatcher { return &fakeWatcher{ watches: nil, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 20 17:33:45 UTC 2018 - 1.4K bytes - Viewed (0) -
pkg/volume/flexvolume/probe_test.go
// test add nested subdir inside testDriverName basePath := testDriverPath for i := 0; i < 10; i++ { subdirName := "subdirName" subdirPath := filepath.Join(basePath, subdirName) fs.MkdirAll(subdirPath, 0777) watcher.TriggerEvent(fsnotify.Create, subdirPath) // Assert assert.Equal(t, 4+i, len(watcher.watches)) // 3 + newly added
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 28 11:14:00 UTC 2023 - 10.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker.go
if requestInfo == nil || readOnlyVerbs.Has(requestInfo.Verb) { return 0 } result := 0 // The watches that we're interested in include: // - watches for all objects of a resource type (no namespace and name specified) // - watches for all objects of a resource type in the same namespace (no name specified) // - watched interested in this particular object identifier := &watchIdentifier{ apiGroup: requestInfo.APIGroup,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 7.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/watch/mux_test.go
wg := sync.WaitGroup{} wg.Add(len(watches)) for i := range watches { // Verify that each watcher only gets the first event because its watch // queue of length one was full from the first one. go func(watcher int, w Interface) { defer wg.Done() e1, ok := <-w.ResultChan() if !ok { t.Errorf("Watcher %v failed to retrieve first event.", watcher) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 16 15:26:25 UTC 2022 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/width_test.go
APIGroup: "foo.bar", Resource: "events", }, counts: map[string]int64{ "events.foo.bar": 799, }, initialSeatsExpected: 8, }, { name: "request verb is create, no watches", requestURI: "http://server/apis/foo.bar/v1/foos", requestInfo: &apirequest.RequestInfo{ Verb: "create", APIGroup: "foo.bar", Resource: "foos", }, maxSeats: 10,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 17K bytes - Viewed (0) -
platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/WatchedHierarchiesTest.groovy
when: def watched = resolveWatchedFiles(watchable, buildHierarchy([])) then: rootsOf(watched) == [] 1 * watchable.stream() >> Stream.of() } def "watches empty directory"() { def watchable = Mock(WatchableHierarchies) def dir = new File("empty").absoluteFile when: def watched = resolveWatchedFiles(watchable, buildHierarchy([
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:38:01 UTC 2023 - 2.8K bytes - Viewed (0) -
pkg/kubelet/config/apiserver.go
) // WaitForAPIServerSyncPeriod is the period between checks for the node list/watch initial sync const WaitForAPIServerSyncPeriod = 1 * time.Second // NewSourceApiserver creates a config source that watches and pulls from the apiserver. func NewSourceApiserver(c clientset.Interface, nodeName types.NodeName, nodeHasSynced func() bool, updates chan<- interface{}) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 21 19:46:27 UTC 2021 - 2.4K bytes - Viewed (0) -
releasenotes/notes/35485.yaml
apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 35485 releaseNotes: - |
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 06 15:05:21 UTC 2021 - 236 bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/testing/testing.go
} r.watchers[gvr][ns] = append(r.watchers[gvr][ns], fakewatcher) return fakewatcher, nil } func (r *VolumeReactor) getWatches(gvr schema.GroupVersionResource, ns string) []*watch.RaceFreeFakeWatcher { watches := []*watch.RaceFreeFakeWatcher{} if r.watchers[gvr] != nil { if w := r.watchers[gvr][ns]; w != nil { watches = append(watches, w...) } if ns != metav1.NamespaceAll {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 20.1K bytes - Viewed (0) -
releasenotes/notes/secret-watch.yaml
apiVersion: release-notes/v2 kind: bug-fix area: security issue: - 35231 releaseNotes: - |
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Sep 17 16:28:11 UTC 2021 - 177 bytes - Viewed (0)