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
- type SecretCache
- type SecretClient
- type SecretController
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
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 Secret() SecretController }
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type NodeCache ¶
type NodeCache interface { generic.NonNamespacedCacheInterface[*v1.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 *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 ¶
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
type PodStatusHandler ¶
PodStatusHandler is executed for every added or modified Pod. Should return the new status to be updated
type SecretCache ¶
type SecretCache interface { generic.CacheInterface[*v1.Secret] }
SecretCache interface for retrieving Secret resources in memory.
type SecretClient ¶
type SecretClient interface { generic.ClientInterface[*v1.Secret, *v1.SecretList] }
SecretClient interface for managing Secret resources in Kubernetes.
type SecretController ¶
type SecretController interface { generic.ControllerInterface[*v1.Secret, *v1.SecretList] }
SecretController interface for managing Secret resources.