Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCustomClient ¶
BuildCustomClient now uses the manager's unified cache instead of creating a separate one. This eliminates the race condition between manager and reconciler caches.
func NewCacheBuilder ¶
func NewCacheBuilder() (cache.NewCacheFunc, error)
NewCacheBuilder returns a cache builder function that configures the manager's cache with custom label selectors and informers. This function should be passed to the manager's NewCache option to ensure a unified cache is used.
Types ¶
type CustomCtrlClient ¶
type CustomCtrlClient interface {
Get(context.Context, client.ObjectKey, client.Object) error
List(context.Context, client.ObjectList, ...client.ListOption) error
StatusUpdate(context.Context, client.Object, ...client.SubResourceUpdateOption) error
Update(context.Context, client.Object, ...client.UpdateOption) error
UpdateWithRetry(context.Context, client.Object, ...client.UpdateOption) error
Create(context.Context, client.Object, ...client.CreateOption) error
Delete(context.Context, client.Object, ...client.DeleteOption) error
Patch(context.Context, client.Object, client.Patch, ...client.PatchOption) error
Exists(context.Context, client.ObjectKey, client.Object) (bool, error)
CreateOrUpdateObject(ctx context.Context, obj client.Object) error
StatusUpdateWithRetry(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
GetClient() client.Client
}
func NewCustomClient ¶
func NewCustomClient(m manager.Manager) (CustomCtrlClient, error)
Click to show internal directories.
Click to hide internal directories.