Documentation ¶
Overview ¶
Package options provides the flags used for the controller manager.
Index ¶
- Constants
- type DebuggingOptions
- type GenericControllerManagerConfigurationOptions
- func (o *GenericControllerManagerConfigurationOptions) AddFlags(fss *cliflag.NamedFlagSets, ...)
- func (o *GenericControllerManagerConfigurationOptions) ApplyTo(cfg *kubectrlmgrconfig.GenericControllerManagerConfiguration) error
- func (o *GenericControllerManagerConfigurationOptions) Validate(allControllers []string, disabledByDefaultControllers []string) []error
- type NodeLifecycleControllerOptions
- type YurtControllerManagerOptions
- func (s *YurtControllerManagerOptions) ApplyTo(c *yurtcontrollerconfig.Config) error
- func (s YurtControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*yurtcontrollerconfig.Config, error)
- func (s *YurtControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) cliflag.NamedFlagSets
- func (s *YurtControllerManagerOptions) Validate(allControllers []string, disabledByDefaultControllers []string) error
Constants ¶
const (
// YurtControllerManagerUserAgent is the userAgent name when starting yurt-controller managers.
YurtControllerManagerUserAgent = "yurt-controller-manager"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebuggingOptions ¶
type DebuggingOptions struct {
*componentbaseconfig.DebuggingConfiguration
}
DebuggingOptions holds the Debugging options.
func (*DebuggingOptions) AddFlags ¶
func (o *DebuggingOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to debugging for controller manager to the specified FlagSet.
func (*DebuggingOptions) ApplyTo ¶
func (o *DebuggingOptions) ApplyTo(cfg *componentbaseconfig.DebuggingConfiguration) error
ApplyTo fills up Debugging config with options.
func (*DebuggingOptions) Validate ¶
func (o *DebuggingOptions) Validate() []error
Validate checks validation of DebuggingOptions.
type GenericControllerManagerConfigurationOptions ¶
type GenericControllerManagerConfigurationOptions struct { *kubectrlmgrconfig.GenericControllerManagerConfiguration Debugging *DebuggingOptions }
GenericControllerManagerConfigurationOptions holds the options which are generic.
func NewGenericControllerManagerConfigurationOptions ¶
func NewGenericControllerManagerConfigurationOptions(cfg *kubectrlmgrconfig.GenericControllerManagerConfiguration) *GenericControllerManagerConfigurationOptions
NewGenericControllerManagerConfigurationOptions returns generic configuration default values for yurt-controller-manager . Any common changes should be made here. Any individual changes should be made in that controller.
func (*GenericControllerManagerConfigurationOptions) AddFlags ¶
func (o *GenericControllerManagerConfigurationOptions) AddFlags(fss *cliflag.NamedFlagSets, allControllers, disabledByDefaultControllers []string)
AddFlags adds flags related to generic for controller manager to the specified FlagSet.
func (*GenericControllerManagerConfigurationOptions) ApplyTo ¶
func (o *GenericControllerManagerConfigurationOptions) ApplyTo(cfg *kubectrlmgrconfig.GenericControllerManagerConfiguration) error
ApplyTo fills up generic config with options.
type NodeLifecycleControllerOptions ¶
type NodeLifecycleControllerOptions struct {
*nodelifecycleconfig.NodeLifecycleControllerConfiguration
}
NodeLifecycleControllerOptions holds the NodeLifecycleController options.
func (*NodeLifecycleControllerOptions) AddFlags ¶
func (o *NodeLifecycleControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NodeLifecycleController for controller manager to the specified FlagSet.
func (*NodeLifecycleControllerOptions) ApplyTo ¶
func (o *NodeLifecycleControllerOptions) ApplyTo(cfg *nodelifecycleconfig.NodeLifecycleControllerConfiguration) error
ApplyTo fills up NodeLifecycleController config with options.
func (*NodeLifecycleControllerOptions) Validate ¶
func (o *NodeLifecycleControllerOptions) Validate() []error
Validate checks validation of NodeLifecycleControllerOptions.
type YurtControllerManagerOptions ¶
type YurtControllerManagerOptions struct { Generic *GenericControllerManagerConfigurationOptions NodeLifecycleController *NodeLifecycleControllerOptions Master string Kubeconfig string Version bool }
YurtControllerManagerOptions is the main context object for the kube-controller manager.
func NewYurtControllerManagerOptions ¶
func NewYurtControllerManagerOptions() (*YurtControllerManagerOptions, error)
NewYurtControllerManagerOptions creates a new YurtControllerManagerOptions with a default config.
func (*YurtControllerManagerOptions) ApplyTo ¶
func (s *YurtControllerManagerOptions) ApplyTo(c *yurtcontrollerconfig.Config) error
ApplyTo fills up controller manager config with options.
func (YurtControllerManagerOptions) Config ¶
func (s YurtControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*yurtcontrollerconfig.Config, error)
Config return a controller manager config objective
func (*YurtControllerManagerOptions) Flags ¶
func (s *YurtControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) cliflag.NamedFlagSets
Flags returns flags for a specific APIServer by section name