options

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedInsecureServingOptions added in v1.3.0

type CombinedInsecureServingOptions struct {
	Healthz *apiserveroptions.DeprecatedInsecureServingOptionsWithLoopback

	BindPort    int
	BindAddress string
}

CombinedInsecureServingOptions sets up to two insecure listeners for healthz and metrics. The flags override the ComponentConfig and DeprecatedInsecureServingOptions values for both.

func (*CombinedInsecureServingOptions) AddFlags added in v1.3.0

func (o *CombinedInsecureServingOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for the insecure serving options.

func (*CombinedInsecureServingOptions) ApplyTo added in v1.3.0

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

func (*CombinedInsecureServingOptions) Validate added in v1.3.0

func (o *CombinedInsecureServingOptions) Validate() []error

Validate validates the insecure serving options.

type Options

type Options struct {
	*scheduleroptions.Options
	CombinedInsecureServing *CombinedInsecureServingOptions
}

Options has all the params needed to run a Scheduler

func NewOptions

func NewOptions() *Options

NewOptions returns default scheduler app options.

func (*Options) Config

func (o *Options) Config() (*schedulerappconfig.Config, error)

Config return a scheduler config object

func (*Options) Validate added in v1.3.0

func (o *Options) Validate() []error

Jump to

Keyboard shortcuts

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