Documentation ¶
Index ¶
- type Builder
- func (blder *Builder) Build(r reconcile.Reconciler) (controller.Controller, error)
- func (blder *Builder) Complete(r reconcile.Reconciler) error
- func (blder *Builder) Named(name string) *Builder
- func (blder *Builder) WithEventHandler(h handler.EventHandler) *Builder
- func (blder *Builder) WithLogger(log logr.Logger) *Builder
- func (blder *Builder) WithOptions(options controller.Options) *Builder
- func (blder *Builder) WithSource(src <-chan event.GenericEvent) *Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder builds a Controller.
func ControllerManagedBy ¶
ControllerManagedBy returns a new controller builder that will be started by the provided Manager.
func (*Builder) Build ¶
func (blder *Builder) Build(r reconcile.Reconciler) (controller.Controller, error)
Build builds the complete controller by validating the configuration, setting up the controller and starting the event source watcher.
func (*Builder) Complete ¶
func (blder *Builder) Complete(r reconcile.Reconciler) error
Complete builds the Application ControllerManagedBy.
func (*Builder) Named ¶
Named sets the name of the controller to the given name. The name shows up in metrics, among other things, and thus should be a prometheus compatible name (underscores and alphanumeric characters only).
By default, controllers are named using the lowercase version of their kind.
func (*Builder) WithEventHandler ¶
func (blder *Builder) WithEventHandler(h handler.EventHandler) *Builder
WithEventHandler sets the source event handler.
func (*Builder) WithLogger ¶
WithLogger overrides the controller options's logger used.
func (*Builder) WithOptions ¶
func (blder *Builder) WithOptions(options controller.Options) *Builder
WithOptions overrides the controller options use in doController. Defaults to empty.
func (*Builder) WithSource ¶
func (blder *Builder) WithSource(src <-chan event.GenericEvent) *Builder
WithSource sets the generic event source of the controller.