Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependencyTracker ¶
type DependencyTracker interface { // Track tells us that "obj" is tracking changes to the // referenced object. Track(ref Key, obj types.NamespacedName) // Lookup returns actively tracked objects for the reference. Lookup(ref Key) []types.NamespacedName // ClearTracked stops tracking all resources for the // referenced object ClearTracked(obj types.NamespacedName) }
DependencyTracker defines the interface through which an object can register that it is tracking another object by reference.
func NewDependencyTracker ¶
func NewDependencyTracker(lease time.Duration, log logr.Logger) DependencyTracker
NewDependencyTracker returns an implementation of Tracker that lets a Reconciler register a particular resource as watching a resource for a particular lease duration. This watch must be refreshed periodically (e.g. by a controller resync) or it will expire.
Click to show internal directories.
Click to hide internal directories.