Documentation
¶
Overview ¶
Package controllers contains code that implements the reconcile pattern, where a specific resource kind is monitored and when a relevant change is detected, it is processed and the appropriate actions are taken to bring the current state to the desired one.
Index ¶
- Variables
- func NewManager(kubeconfigPath string) (manager.Manager, error)
- func NewNamespaceController(mgr manager.Manager, opts *ControllerOptions, log zerolog.Logger) (controller.Controller, error)
- func NewServiceController(mgr manager.Manager, opts *ControllerOptions, log zerolog.Logger) (controller.Controller, error)
- type ControllerOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidManager = errors.New("invalid manager provided") ErrorInvalidControllerOptions = errors.New("invalid controller options provided") )
Functions ¶
func NewNamespaceController ¶
func NewNamespaceController(mgr manager.Manager, opts *ControllerOptions, log zerolog.Logger) (controller.Controller, error)
func NewServiceController ¶
func NewServiceController(mgr manager.Manager, opts *ControllerOptions, log zerolog.Logger) (controller.Controller, error)
Types ¶
type ControllerOptions ¶
type ControllerOptions struct { WatchNamespacesByDefault bool ServiceAnnotations []string EventsChan chan *serviceregistry.Event }
Click to show internal directories.
Click to hide internal directories.