Documentation ¶
Overview ¶
Package options provides the flags used for the controller manager.
Index ¶
- Constants
- 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 ¶
View Source
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 YurtControllerManagerOptions ¶
type YurtControllerManagerOptions struct { Generic *cmoptions.GenericControllerManagerConfigurationOptions 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
Click to show internal directories.
Click to hide internal directories.