Documentation ¶
Index ¶
- func RegisterNodeGeneratingHandler(ctx context.Context, controller NodeController, apply apply.Apply, ...)
- func RegisterNodeStatusHandler(ctx context.Context, controller NodeController, condition condition.Cond, ...)
- type Interface
- type NodeCache
- type NodeClient
- type NodeController
- type NodeGeneratingHandler
- type NodeStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNodeGeneratingHandler ¶
func RegisterNodeGeneratingHandler(ctx context.Context, controller NodeController, apply apply.Apply, condition condition.Cond, name string, handler NodeGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterNodeGeneratingHandler configures a NodeController to execute a NodeGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
func RegisterNodeStatusHandler ¶
func RegisterNodeStatusHandler(ctx context.Context, controller NodeController, condition condition.Cond, name string, handler NodeStatusHandler)
RegisterNodeStatusHandler configures a NodeController to execute a NodeStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
Types ¶
type Interface ¶
type Interface interface {
Node() NodeController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type NodeCache ¶
type NodeCache interface { generic.CacheInterface[*v1beta2.Node] }
NodeCache interface for retrieving Node resources in memory.
type NodeClient ¶
NodeClient interface for managing Node resources in Kubernetes.
type NodeController ¶
NodeController interface for managing Node resources.
type NodeGeneratingHandler ¶
type NodeGeneratingHandler func(obj *v1beta2.Node, status v1beta2.NodeStatus) ([]runtime.Object, v1beta2.NodeStatus, error)
NodeGeneratingHandler is the top-level handler that is executed for every Node event. It extends NodeStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type NodeStatusHandler ¶
type NodeStatusHandler func(obj *v1beta2.Node, status v1beta2.NodeStatus) (v1beta2.NodeStatus, error)
NodeStatusHandler is executed for every added or modified Node. Should return the new status to be updated