options

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPyroscopeMutexProfilerRate = 5
	DefaultPyroscopeBlockProfilerRate = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerOption

type ServerOption struct {
	SchedulerName                     string
	ResourceReservationAppLabel       string
	SchedulerConf                     string
	SchedulePeriod                    time.Duration
	EnableLeaderElection              bool
	PrintVersion                      bool
	MetricsNamespace                  string
	RestrictSchedulingNodes           bool
	NodePoolLabelKey                  string
	NodePoolLabelValue                string
	ListenAddress                     string
	EnableProfiler                    bool
	ProfilerApiPort                   string
	PyroscopeAddress                  string
	PyroscopeMutexProfilerRate        int
	PyroscopeBlockProfilerRate        int
	Verbosity                         int
	IsInferencePreemptible            bool
	MaxNumberConsolidationPreemptees  int
	DetailedFitErrors                 bool
	ScheduleCSIStorage                bool
	UseSchedulingSignatures           bool
	FullHierarchyFairness             bool
	NodeLevelScheduler                bool
	AllowConsolidatingReclaim         bool
	NumOfStatusRecordingWorkers       int
	GlobalDefaultStalenessGracePeriod time.Duration
	PluginServerPort                  int
	CPUWorkerNodeLabelKey             string
	GPUWorkerNodeLabelKey             string
	MIGWorkerNodeLabelKey             string
	Namspace                          string

	QPS   int
	Burst int
}

ServerOption is the main context object for the controller manager.

func NewServerOption

func NewServerOption() *ServerOption

NewServerOption creates a new CMServer with a default config.

func (*ServerOption) AddFlags

func (s *ServerOption) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific CMServer to the specified FlagSet

func (*ServerOption) ValidateOptions

func (so *ServerOption) ValidateOptions() error

Jump to

Keyboard shortcuts

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