options

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultClusternetSchedulerPort is the default port for the scheduler status server.
	// May be overridden by a flag at startup.
	DefaultClusternetSchedulerPort = 10659
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulerOptions

type SchedulerOptions struct {
	SecureServing *apiserveroptions.SecureServingOptionsWithLoopback

	// DebuggingOptions holds the Debugging options.
	DebuggingOptions *controllermanageroptions.DebuggingOptions

	*utils.ControllerOptions
	FrameworkOutOfTreeRegistry frameworkruntime.Registry
	SchedulerConfiguration     *apis.SchedulerConfiguration
	Metrics                    *metrics.Options

	// ConfigFile is the location of the scheduler server's configuration file.
	ConfigFile string

	// Flags hold the parsed CLI flags.
	Flags *cliflag.NamedFlagSets
}

SchedulerOptions has all the params needed to run a Scheduler

func NewSchedulerOptions

func NewSchedulerOptions() (*SchedulerOptions, error)

NewSchedulerOptions returns a new SchedulerOptions

func (*SchedulerOptions) Complete

func (o *SchedulerOptions) Complete() error

Complete fills in fields required to have valid data

func (*SchedulerOptions) Config added in v0.15.0

func (o *SchedulerOptions) Config() error

func (*SchedulerOptions) Validate

func (o *SchedulerOptions) Validate() error

Validate validates SchedulerOptions

Jump to

Keyboard shortcuts

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