Documentation ¶
Overview ¶
Package watch includes a RestartableManager for dynamically watching resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerBuilder ¶
type ControllerBuilder interface { // StartControllers starts the relevant controllers using the RestartableManager to manage them. StartControllers(mgr manager.Manager, gvks map[schema.GroupVersionKind]bool, mgrInitTime metav1.Time) error }
ControllerBuilder builds controllers. It is managed by RestartableManager, which is managed by a higher-level controller.
type RestartableManager ¶
type RestartableManager interface { // Restart restarts the Manager and all the controllers it manages to watch the given GroupVersionKinds. // Returns if a restart actually happened and if there were any errors while doing it. Restart(gvks map[schema.GroupVersionKind]bool, force bool) (bool, error) }
RestartableManager is a controller manager that can be restarted based on the resources it syncs.
func NewManager ¶
func NewManager(mgr manager.Manager, builder ControllerBuilder) (RestartableManager, error)
NewManager returns a new RestartableManager
Click to show internal directories.
Click to hide internal directories.