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

Function byObjectToConfig

pkg/cache/cache.go:495–504  ·  view source on GitHub ↗
(byObject ByObject)

Source from the content-addressed store, hash-verified

493}
494
495func byObjectToConfig(byObject ByObject) Config {
496 return Config{
497 LabelSelector: byObject.Label,
498 FieldSelector: byObject.Field,
499 Transform: byObject.Transform,
500 UnsafeDisableDeepCopy: byObject.UnsafeDisableDeepCopy,
501 EnableWatchBookmarks: byObject.EnableWatchBookmarks,
502 SyncPeriod: byObject.SyncPeriod,
503 }
504}
505
506type newCacheFunc func(config Config, namespace string) Cache
507

Callers 2

NewFunction · 0.85
defaultOptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…