MCPcopy
hub / github.com/kubernetes-sigs/controller-runtime / BlockUntilSynced

Function BlockUntilSynced

pkg/cache/cache.go:56–60  ·  view source on GitHub ↗

BlockUntilSynced determines whether a get request for an informer should block until the informer's cache has synced.

(shouldBlock bool)

Source from the content-addressed store, hash-verified

54// BlockUntilSynced determines whether a get request for an informer should block
55// until the informer's cache has synced.
56func BlockUntilSynced(shouldBlock bool) InformerGetOption {
57 return func(opts *InformerGetOptions) {
58 opts.BlockUntilSynced = &shouldBlock
59 }
60}
61
62// Cache knows how to load Kubernetes objects, fetch informers to request
63// to receive events for Kubernetes objects (at a low-level),

Callers 3

NonBlockingGetTestFunction · 0.92
IndexFieldMethod · 0.85

Calls

no outgoing calls

Tested by 2

NonBlockingGetTestFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…