Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a registry of all the controllers. It is used to map a kind to the controller that can handle that kind. We need to avoid circular dependencies. So controller registration happens in app.SetupRegistry. The app package can then import
- Any package which defines a controller
- The controller package itself
The controller package shouldn't import any controller packages as that would risk circular dependencies Controllers that need to apply other resources can import the registry in order to loop up the controller for the resource
func (*Registry) GetController ¶
func (r *Registry) GetController(gvk schema.GroupVersionKind) (Controller, error)
func (*Registry) ReconcileNode ¶
func (*Registry) Register ¶
func (r *Registry) Register(gvk schema.GroupVersionKind, controller Controller) error
Click to show internal directories.
Click to hide internal directories.