Documentation
¶
Overview ¶
Package observer polls the Kubernetes api-server to discover all supported API groups/object kinds, and launch a new controller for each of them. Due to CRD/TPR, new API groups / object kinds may appear at any time, that's why we keep polling the API server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerFactory ¶
type ControllerFactory interface {
NewController(client cache.ListerWatcher, notifier event.Notifier, name string) controller.Interface
}
ControllerFactory make controllers generation interchangeable
type Observer ¶
Observer watch api-server and manage kubernetes controllers lifecyles
func New ¶
func New(log logger, client restclient, notif event.Notifier, factory ControllerFactory, excluded []string) *Observer
New returns a new observer, that will watch API resources and create controllers
Click to show internal directories.
Click to hide internal directories.