options

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package options provides the descheduler flags

Index

Constants

View Source
const (
	DefaultDeschedulerPort = 10258
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeschedulerServer

type DeschedulerServer struct {
	componentconfig.DeschedulerConfiguration

	Client            clientset.Interface
	EventClient       clientset.Interface
	MetricsClient     metricsclient.Interface
	SecureServing     *apiserveroptions.SecureServingOptionsWithLoopback
	SecureServingInfo *apiserver.SecureServingInfo
	DisableMetrics    bool
	EnableHTTP2       bool
	// FeatureGates enabled by the user
	FeatureGates map[string]bool
	// DefaultFeatureGates for internal accessing so unit tests can enable/disable specific features
	DefaultFeatureGates featuregate.FeatureGate
}

DeschedulerServer configuration

func NewDeschedulerServer

func NewDeschedulerServer() (*DeschedulerServer, error)

NewDeschedulerServer creates a new DeschedulerServer with default parameters

func (*DeschedulerServer) AddFlags

func (rs *DeschedulerServer) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific SchedulerServer to the specified FlagSet

func (*DeschedulerServer) Apply added in v0.32.0

func (rs *DeschedulerServer) Apply() error

Jump to

Keyboard shortcuts

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