- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 580 for watcher (0.14 sec)
-
pkg/config/mesh/kubemesh/watcher.go
}) go c.Run(stop) // Ensure the ConfigMap is initially loaded if present. if !client.WaitForCacheSync("configmap watcher", stop, c.HasSynced) { log.Error("failed to wait for cache sync") } return w } func AddUserMeshConfig(client kube.Client, watcher mesh.Watcher, namespace, key, userMeshConfig string, stop <-chan struct{}) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 25 20:54:46 UTC 2024 - 3.8K bytes - Viewed (0) -
pkg/util/filesystem/watcher.go
} // Initialize watcher, fall back to no-op var ( eventsCh chan fsnotify.Event errorCh chan error watcher watchAddRemover ) if w, err := fsnotify.NewWatcher(); err != nil { errorHandler(fmt.Errorf("error creating file watcher, falling back to poll at interval %s: %w", pollInterval, err)) watcher = noopWatcher{} } else { watcher = w eventsCh = w.Events errorCh = w.Errors
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 14 23:09:15 UTC 2024 - 5.7K bytes - Viewed (0) -
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) -
platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/NonHierarchicalFileWatcherUpdaterTest.groovy
addSnapshot(snapshotRegularFile(fileInWatchableHierarchies)) then: 1 * watcher.startWatching({ equalIgnoringOrder(it, [probeRegistry.getProbeDirectory(file("first"))]) }) 1 * watcher.startWatching({ equalIgnoringOrder(it, [fileInWatchableHierarchies.parentFile]) }) 1 * watcher.startWatching({ equalIgnoringOrder(it, [watchableHierarchies[0]]) }) 0 * _ when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 23 13:24:54 UTC 2024 - 4.8K bytes - Viewed (0) -
platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy
def setup() { updater = createUpdater(watcher, watchableHierarchies) } /** * Returns 1 for non-hierarchical watchers, and 0 for hierarchical watchers. * * For use in interaction tests, when an interaction only happens for non-hierarchical watchers. * E.g.: * ifNonHierarchical * watcher.startWatching(_) */ abstract int getIfNonHierarchical() /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 25 15:08:33 UTC 2024 - 21.5K bytes - Viewed (0) -
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) -
platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdaterTest.groovy
@Override FileWatcherUpdater createUpdater(FileWatcher watcher, WatchableHierarchies watchableHierarchies) { new HierarchicalFileWatcherUpdater(watcher, NO_VALIDATION, probeRegistry, watchableHierarchies, movedWatchedDirectoriesSupplier) } @Override int getIfNonHierarchical() { 0 } def "does not watch hierarchy to watch if no snapshot is inside"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 23 13:24:54 UTC 2024 - 12K bytes - Viewed (0) -
cni/pkg/util/pluginutil.go
for _, path := range paths { if !file.Exists(path) { log.Infof("file watcher skipping watch on non-existent path: %v", path) continue } if err := watcher.Add(path); err != nil { if closeErr := watcher.Close(); closeErr != nil { err = fmt.Errorf("%s: %w", closeErr.Error(), err) } return nil, err } } return &Watcher{ watcher: watcher, Events: fileModified,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 3.6K bytes - Viewed (0) -
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) -
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)