- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for RegisterWatch (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker_test.go
t.Fatalf("unexpected error from requestInfo creation: %#v", err) } ctx := request.WithRequestInfo(context.Background(), requestInfo) r := testCase.request.WithContext(ctx) forget := watchTracker.RegisterWatch(r) if testCase.expected == nil { if forget != nil { t.Errorf("unexpected watch registered: %#v", watchTracker.watchCount) } return } if forget == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 03 14:02:51 UTC 2021 - 10.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go
}() noteExecutingDelta(1) defer noteExecutingDelta(-1) served = true setResponseHeaders(classification, w) forgetWatch = h.fcIfc.RegisterWatch(r) // Notify the main thread that we're ready to start the watch. close(shouldStartWatchCh) // Wait until the request is finished from the APF point of view
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 15.3K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex.go
// AllPolicies includes peer-authentication converted policies AuthorizationPolicies, AllPolicies := PolicyCollections(AuthzPolicies, PeerAuths, MeshConfig, Waypoints, Pods) AllPolicies.RegisterBatch(PushXds(a.XDSUpdater, func(i model.WorkloadAuthorization) model.ConfigKey { return model.ConfigKey{Kind: kind.AuthorizationPolicy, Name: i.Authorization.Name, Namespace: i.Authorization.Namespace} }), false)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 19 17:19:41 UTC 2024 - 15.8K bytes - Viewed (0) -
pkg/kube/krt/collection.go
// When we run RegisterBatch, it will trigger events for the initial state. However, other events could trigger // while we are processing these. // By holding the lock, we ensure we have exclusive access during this time. h.recomputeMu.Lock() h.eventHandlers.MarkInitialized() handlerReg := c.RegisterBatch(func(events []Event[I], initialSync bool) { if log.DebugEnabled() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 19.4K bytes - Viewed (0) -
pkg/kube/krt/collection_test.go
return a.(SizedPod).Size == pd.Labels["want-size"] })) return &PodSizeCount{ Named: pd.Named, MatchingSizes: len(matches), } }) tt := assert.NewTracker[string](t) Thingys.RegisterBatch(BatchedTrackerHandler[PodSizeCount](tt), true) assert.Equal(t, fetcherSorted(Thingys)(), nil) pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "name", Namespace: "namespace",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 28 04:22:19 UTC 2024 - 14.6K bytes - Viewed (0)