Documentation ¶
Index ¶
- Constants
- func BindLeaderElectionFlags(l *config.LeaderElectionConfiguration, fs *pflag.FlagSet)
- func NewDefaultComponentConfig() (godelctrlmgrconfig.GodelControllerManagerConfiguration, error)
- type CombinedInsecureServingOptions
- func (o *CombinedInsecureServingOptions) AddFlags(fs *pflag.FlagSet)
- func (o *CombinedInsecureServingOptions) ApplyTo(c *cmdconfig.Config, ...) error
- func (o *CombinedInsecureServingOptions) ApplyToFromLoadedConfig(c *cmdconfig.Config, ...) error
- func (o *CombinedInsecureServingOptions) Validate() []error
- type DebuggingOptions
- type GenericControllerManagerConfigurationOptions
- func (o *GenericControllerManagerConfigurationOptions) AddFlags(fss *cliflag.NamedFlagSets, ...)
- func (o *GenericControllerManagerConfigurationOptions) ApplyTo(cfg *cmconfig.GenericControllerManagerConfiguration) error
- func (o *GenericControllerManagerConfigurationOptions) Validate(allControllers []string, disabledByDefaultControllers []string) []error
- type GodelControllerManagerOptions
- func (opt *GodelControllerManagerOptions) ApplyTo(c *cmdconfig.Config) error
- func (opt *GodelControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*cmdconfig.Config, error)
- func (opt *GodelControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) cliflag.NamedFlagSets
- func (opt *GodelControllerManagerOptions) Validate(allControllers []string, disabledByDefaultControllers []string) error
- type LeaderMigrationOptions
- type ReservationControllerOptions
- type TracerOptions
Constants ¶
const DefaultLeaderElectionConfig = "godel-controller-manager"
Variables ¶
This section is empty.
Functions ¶
func BindLeaderElectionFlags ¶
func BindLeaderElectionFlags(l *config.LeaderElectionConfiguration, fs *pflag.FlagSet)
BindLeaderElectionFlags binds the LeaderElectionConfiguration struct fields to a flagset
func NewDefaultComponentConfig ¶
func NewDefaultComponentConfig() (godelctrlmgrconfig.GodelControllerManagerConfiguration, error)
Types ¶
type CombinedInsecureServingOptions ¶
type CombinedInsecureServingOptions struct { Healthz *apiserveroptions.DeprecatedInsecureServingOptionsWithLoopback Metrics *apiserveroptions.DeprecatedInsecureServingOptionsWithLoopback BindPort int // overrides the structs above on ApplyTo, ignored on ApplyToFromLoadedConfig BindAddress string // overrides the structs above on ApplyTo, ignored on ApplyToFromLoadedConfig }
CombinedInsecureServingOptions sets up to two insecure listeners for healthz and metrics. The flags override the ComponentConfig and DeprecatedInsecureServingOptions values for both.
func (*CombinedInsecureServingOptions) AddFlags ¶
func (o *CombinedInsecureServingOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags for the insecure serving options.
func (*CombinedInsecureServingOptions) ApplyTo ¶
func (o *CombinedInsecureServingOptions) ApplyTo(c *cmdconfig.Config, componentConfig *godelctrlmgrconfig.GodelControllerManagerConfiguration) error
ApplyTo applies the insecure serving options to the given scheduler app configuration, and updates the componentConfig.
func (*CombinedInsecureServingOptions) ApplyToFromLoadedConfig ¶
func (o *CombinedInsecureServingOptions) ApplyToFromLoadedConfig(c *cmdconfig.Config, componentConfig *godelctrlmgrconfig.GodelControllerManagerConfiguration) error
ApplyToFromLoadedConfig updates the insecure serving options from the component config and then applies it to the given scheduler app configuration.
func (*CombinedInsecureServingOptions) Validate ¶
func (o *CombinedInsecureServingOptions) Validate() []error
Validate validates the insecure serving options.
type DebuggingOptions ¶
type DebuggingOptions struct {
*componentbaseconfig.DebuggingConfiguration
}
DebuggingOptions holds the Debugging options.
func RecommendedDebuggingOptions ¶
func RecommendedDebuggingOptions() *DebuggingOptions
RecommendedDebuggingOptions returns the currently recommended debugging options. These are subject to change between releases as we add options and decide which features should be exposed or not by default.
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 { *cmconfig.GenericControllerManagerConfiguration Debugging *DebuggingOptions }
GenericControllerManagerConfigurationOptions holds the options which are generic.
func NewGenericControllerManagerConfigurationOptions ¶
func NewGenericControllerManagerConfigurationOptions(cfg *cmconfig.GenericControllerManagerConfiguration) *GenericControllerManagerConfigurationOptions
NewGenericControllerManagerConfigurationOptions returns generic configuration default values for both the kube-controller-manager and the cloud-contoller-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 *cmconfig.GenericControllerManagerConfiguration) error
ApplyTo fills up generic config with options.
type GodelControllerManagerOptions ¶
type GodelControllerManagerOptions struct { Generic *GenericControllerManagerConfigurationOptions ReservationController *ReservationControllerOptions Tracer *TracerOptions SecureServing *apiserveroptions.SecureServingOptionsWithLoopback CombinedInsecureServing *CombinedInsecureServingOptions Authentication *apiserveroptions.DelegatingAuthenticationOptions Authorization *apiserveroptions.DelegatingAuthorizationOptions // ConfigFile is the location of the scheduler server's configuration file. ConfigFile string // WriteConfigTo is the path where the default configuration will be written. WriteConfigTo string Master string }
func NewGodelControllerManagerOptions ¶
func NewGodelControllerManagerOptions() (*GodelControllerManagerOptions, error)
func (*GodelControllerManagerOptions) ApplyTo ¶
func (opt *GodelControllerManagerOptions) ApplyTo(c *cmdconfig.Config) error
func (*GodelControllerManagerOptions) Flags ¶
func (opt *GodelControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) cliflag.NamedFlagSets
type LeaderMigrationOptions ¶
type LeaderMigrationOptions struct { // Enabled indicates whether leader migration is enabled through the --enabled-leader-migration flag. Enabled bool // ControllerMigrationConfig is the path to the file of LeaderMigrationConfiguration type. // It can be set with --leader-migration-config flag // If the path is "" (default vaule), the default vaule will be used. ControllerMigrationConfig string }
LeaderMigrationOptions is the set of options for Leader Migration, which is given to the controller manager through flags
func DefaultLeaderMigrationOptions ¶
func DefaultLeaderMigrationOptions() *LeaderMigrationOptions
DefaultLeaderMigrationOptions returns a LeaderMigrationOptions with default values.
func (*LeaderMigrationOptions) AddFlags ¶
func (o *LeaderMigrationOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds all flags related to leader migration to given flag set.
func (*LeaderMigrationOptions) ApplyTo ¶
func (o *LeaderMigrationOptions) ApplyTo(cfg *config.GenericControllerManagerConfiguration) error
ApplyTo applies the options of leader migration to generic configuration.
type ReservationControllerOptions ¶
type ReservationControllerOptions struct {
*config.ReservationControllerConfiguration
}
func (*ReservationControllerOptions) AddFlags ¶
func (opt *ReservationControllerOptions) AddFlags(fs *pflag.FlagSet)
func (*ReservationControllerOptions) ApplyTo ¶
func (opt *ReservationControllerOptions) ApplyTo(cfg *config.ReservationControllerConfiguration) error
func (*ReservationControllerOptions) Validate ¶
func (opt *ReservationControllerOptions) Validate() error
TODO
type TracerOptions ¶
type TracerOptions struct {
*tracing.TracerConfiguration
}