Documentation
¶
Overview ¶
Package client provides utils for usage with the controller-runtime client.
Index ¶
- func WaitForCacheToBeUpToDate[T client.Object](ctx context.Context, c client.Client, action string, objs ...T) error
- func WaitForObjectsToBeAddedToTheCache[T client.Object](ctx context.Context, c client.Client, action string, objs ...T) error
- func WaitForObjectsToBeDeletedFromTheCache[T client.Object](ctx context.Context, c client.Client, action string, objs ...T) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForCacheToBeUpToDate ¶
func WaitForCacheToBeUpToDate[T client.Object](ctx context.Context, c client.Client, action string, objs ...T) error
WaitForCacheToBeUpToDate waits until the cache is up-to-date in the sense of that the cache contains all passed in objects with at least the passed in resourceVersion. This is done by retrieving objects from the cache via the client and then comparing resourceVersions. Note: This func will update the passed in objects while polling. Note: resourceVersion must be set on the passed in objects. Note: The generic parameter enforces that all objects have the same type.
func WaitForObjectsToBeAddedToTheCache ¶
func WaitForObjectsToBeAddedToTheCache[T client.Object](ctx context.Context, c client.Client, action string, objs ...T) error
WaitForObjectsToBeAddedToTheCache waits until the cache is up-to-date in the sense of that the passed in objects exist in the cache. Note: This func will update the passed in objects while polling. Note: The generic parameter enforces that all objects have the same type.
func WaitForObjectsToBeDeletedFromTheCache ¶
func WaitForObjectsToBeDeletedFromTheCache[T client.Object](ctx context.Context, c client.Client, action string, objs ...T) error
WaitForObjectsToBeDeletedFromTheCache waits until the cache is up-to-date in the sense of that the passed in objects have been either removed from the cache or they have a deletionTimestamp set. Note: This func will update the passed in objects while polling. Note: The generic parameter enforces that all objects have the same type.
Types ¶
This section is empty.