Documentation ¶
Index ¶
- Constants
- func BindFlags(l *componentbaseconfig.LeaderElectionConfiguration, fs *pflag.FlagSet)
- type CombinedInsecureServingOptions
- func (o *CombinedInsecureServingOptions) AddFlags(fs *pflag.FlagSet)
- func (o *CombinedInsecureServingOptions) ApplyTo(c *binderappconfig.Config, ...) error
- func (o *CombinedInsecureServingOptions) ApplyToFromLoadedConfig(c *binderappconfig.Config, ...) error
- func (o *CombinedInsecureServingOptions) Validate() []error
- type Options
Constants ¶
const DefaultLeaderElectionName = "binder"
Variables ¶
This section is empty.
Functions ¶
func BindFlags ¶
func BindFlags(l *componentbaseconfig.LeaderElectionConfiguration, fs *pflag.FlagSet)
BindFlags binds the LeaderElectionConfiguration struct fields to a flagset
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 BinderConfig 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 *binderappconfig.Config, componentConfig *godelbinderconfig.GodelBinderConfiguration) 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 *binderappconfig.Config, componentConfig *godelbinderconfig.GodelBinderConfiguration) 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 Options ¶
type Options struct { BinderConfig binderconfig.GodelBinderConfiguration // 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 CombinedInsecureServing *CombinedInsecureServingOptions VolumeBindingTimeoutSeconds int64 }
func NewOptions ¶
NewOptions returns default binder app options.
func (*Options) ApplyTo ¶
func (o *Options) ApplyTo(c *binderappconfig.Config) error
ApplyTo applies the binder options to the given binder app configuration.
func (*Options) Config ¶
func (o *Options) Config() (*binderappconfig.Config, error)
Config return a scheduler config object
func (*Options) Flags ¶
func (o *Options) Flags() (nfs cliflag.NamedFlagSets)
Flags returns flags for a specific scheduler by section name