- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetOnReplace (0.11 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go
} w.cond.Broadcast() metrics.RecordResourceVersion(w.groupResource.String(), version) klog.V(3).Infof("Replaced watchCache (rev: %v) ", resourceVersion) return nil } func (w *watchCache) SetOnReplace(onReplace func()) { w.Lock() defer w.Unlock() w.onReplace = onReplace } func (w *watchCache) Resync() error { // Nothing to do return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 10:20:57 UTC 2024 - 26.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
// it when this function exits (always due to disconnection), only if // we actually got a successful list. This cycle will repeat as needed. successfulList := false c.watchCache.SetOnReplace(func() { successfulList = true c.ready.set(true) klog.V(1).Infof("cacher (%v): initialized", c.groupResource.String()) metrics.WatchCacheInitializations.WithLabelValues(c.groupResource.String()).Inc() })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 51.8K bytes - Viewed (0)