Documentation
¶
Index ¶
- func RegisterNodeGeneratingHandler(ctx context.Context, controller NodeController, apply apply.Apply, ...)
- func RegisterNodeStatusHandler(ctx context.Context, controller NodeController, condition condition.Cond, ...)
- func RegisterPodGeneratingHandler(ctx context.Context, controller PodController, apply apply.Apply, ...)
- func RegisterPodStatusHandler(ctx context.Context, controller PodController, condition condition.Cond, ...)
- type Interface
- type NodeCache
- type NodeClient
- type NodeController
- type NodeGeneratingHandler
- type NodeStatusHandler
- type PodCache
- type PodClient
- type PodController
- type PodGeneratingHandler
- type PodStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNodeGeneratingHandler ¶ added in v0.3.0
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 ¶ added in v0.3.0
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
func RegisterPodGeneratingHandler ¶
func RegisterPodGeneratingHandler(ctx context.Context, controller PodController, apply apply.Apply, condition condition.Cond, name string, handler PodGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterPodGeneratingHandler configures a PodController to execute a PodGeneratingHandler 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 RegisterPodStatusHandler ¶
func RegisterPodStatusHandler(ctx context.Context, controller PodController, condition condition.Cond, name string, handler PodStatusHandler)
RegisterPodStatusHandler configures a PodController to execute a PodStatusHandler 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 Pod() PodController }
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type NodeCache ¶ added in v0.3.0
type NodeCache interface { generic.NonNamespacedCacheInterface[*v1.Node] }
NodeCache interface for retrieving Node resources in memory.
type NodeClient ¶ added in v0.3.0
NodeClient interface for managing Node resources in Kubernetes.
type NodeController ¶ added in v0.3.0
NodeController interface for managing Node resources.
type NodeGeneratingHandler ¶ added in v0.3.0
type NodeGeneratingHandler func(obj *v1.Node, status v1.NodeStatus) ([]runtime.Object, v1.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 ¶ added in v0.3.0
type NodeStatusHandler func(obj *v1.Node, status v1.NodeStatus) (v1.NodeStatus, error)
NodeStatusHandler is executed for every added or modified Node. Should return the new status to be updated
type PodCache ¶
type PodCache interface { generic.CacheInterface[*v1.Pod] }
PodCache interface for retrieving Pod resources in memory.
type PodController ¶
PodController interface for managing Pod resources.
type PodGeneratingHandler ¶
type PodGeneratingHandler func(obj *v1.Pod, status v1.PodStatus) ([]runtime.Object, v1.PodStatus, error)
PodGeneratingHandler is the top-level handler that is executed for every Pod event. It extends PodStatusHandler by a returning a slice of child objects to be passed to apply.Apply