client

package
v1.12.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package client provides utils for usage with the controller-runtime client.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL