Documentation ¶
Index ¶
Constants ¶
const ControllerName = "node_controller"
ControllerName is the name of the controller.
Variables ¶
var DefaultAddOptions = AddOptions{}
DefaultAddOptions are the default AddOptions for AddToManager.
Functions ¶
func AddToManager ¶
AddToManager adds a controller with the default Options.
func AddToManagerWithOptions ¶
func AddToManagerWithOptions(mgr manager.Manager, opts AddOptions) error
AddToManagerWithOptions adds a controller with the given Options to the given manager. The opts.Reconciler is being set with a newly instantiated actuator.
func NewReconciler ¶
func NewReconciler() reconcile.Reconciler
NewReconciler creates a new reconcile.Reconciler that reconciles Nodes.
Types ¶
type AddOptions ¶
type AddOptions struct { // Controller are the controller.Options. Controller controller.Options }
AddOptions are options to apply when adding the local infrastructure controller to the manager.
type ControllerConfig ¶
type ControllerConfig struct { // MaxConcurrentReconciles is the maximum number of concurrent reconciles. MaxConcurrentReconciles int }
ControllerConfig is a completed controller configuration.
func (*ControllerConfig) Apply ¶
func (c *ControllerConfig) Apply(opts *AddOptions)
Apply sets the values of this ControllerConfig in the given AddOptions.
type ControllerOptions ¶
type ControllerOptions struct { // MaxConcurrentReconciles are the maximum concurrent reconciles. MaxConcurrentReconciles int // contains filtered or unexported fields }
ControllerOptions are command line options that can be set for controller.Options.
func (*ControllerOptions) AddFlags ¶
func (c *ControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags implements Flagger.AddFlags.
func (*ControllerOptions) Complete ¶
func (c *ControllerOptions) Complete() error
Complete implements Completer.Complete.
func (*ControllerOptions) Completed ¶
func (c *ControllerOptions) Completed() *ControllerConfig
Completed returns the completed ControllerConfig. Only call this if `Complete` was successful.