Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObserveRetriesExceeded ¶
func ObserveRetriesExceeded(name string)
func ObserveWorkerEnd ¶
func ObserveWorkerStart ¶
func ObserveWorkerStart(name string)
func ObserveWorkersTotal ¶
Types ¶
type Controller ¶
type Controller struct { // SplitMetaNamespaceKey is the function used to split a key into namespace and name. // Defaults to cache.SplitMetaNamespaceKey. SplitMetaNamespaceKey func(string) (string, string, error) // contains filtered or unexported fields }
Controller is a reconciler controller template that handles concurrency, workqueue and retries with a Reconciler handler.
func NewController ¶
func NewController(handler Reconciler, queue workqueue.RateLimitingInterface) *Controller
NewController creates a Controller that uses the given Reconciler to handle syncs from a rate-limited workqueue.
func (*Controller) Start ¶
func (w *Controller) Start(ctx context.Context)
func (*Controller) Wait ¶
func (w *Controller) Wait()
Wait until all reconciler workers have exited. They should exit once they are done with their work, and a Get from the workqueue is telling them to shut down.
Click to show internal directories.
Click to hide internal directories.