BlockUntilSynced determines whether a get request for an informer should block until the informer's cache has synced.
(shouldBlock bool)
| 54 | // BlockUntilSynced determines whether a get request for an informer should block |
| 55 | // until the informer's cache has synced. |
| 56 | func 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), |
no outgoing calls
searching dependent graphs…