Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnqueueConst ¶
func EnqueueConst[O ctrlruntimeclient.Object](value string) handler.TypedEventHandler[O, reconcile.Request]
EnqueueConst returns a handler that returns a reconcile request that will contain the given value as the request's name.
Types ¶
type HandlerRemovingCache ¶ added in v0.9.0
HandlerRemovingCache is meant for controller-runtime's Kind sources, which never remove their event handlers from the shared informers. It removes each handler once the context that its informer was retrieved with ends, which for Kind sources is the context they were started with. Without this, every stopped sync controller would leave its handlers (and their goroutines) behind on the local manager's informers.
func (HandlerRemovingCache) GetInformer ¶ added in v0.9.0
func (c HandlerRemovingCache) GetInformer(ctx context.Context, obj ctrlruntimeclient.Object, opts ...cache.InformerGetOption) (cache.Informer, error)