options

package
v0.0.0-...-e52b029 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
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

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

ApplyTo applies the insecure serving options to the given scheduler app configuration, and updates the componentConfig.

func (*CombinedInsecureServingOptions) ApplyToFromLoadedConfig

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

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

ApplyTo fills up generic config with options.

func (*GenericControllerManagerConfigurationOptions) Validate

func (o *GenericControllerManagerConfigurationOptions) Validate(allControllers []string, disabledByDefaultControllers []string) []error

Validate checks validation of GenericOptions.

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 (*GodelControllerManagerOptions) Config

func (opt *GodelControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*cmdconfig.Config, error)

func (*GodelControllerManagerOptions) Flags

func (opt *GodelControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) cliflag.NamedFlagSets

func (*GodelControllerManagerOptions) Validate

func (opt *GodelControllerManagerOptions) Validate(allControllers []string, disabledByDefaultControllers []string) error

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

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 (*ReservationControllerOptions) Validate

func (opt *ReservationControllerOptions) Validate() error

TODO

type TracerOptions

type TracerOptions struct {
	*tracing.TracerConfiguration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL