scheduler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UnreserveTip = "ignore"

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulerLitekubeOptions

type SchedulerLitekubeOptions struct {
	Profiling bool `yaml:"profiling"`
}

options for Litekube to start kube-scheduler

func NewSchedulerLitekubeOptions

func NewSchedulerLitekubeOptions() *SchedulerLitekubeOptions

func (*SchedulerLitekubeOptions) AddTips

func (opt *SchedulerLitekubeOptions) AddTips(section *help.Section)

type SchedulerOptions

type SchedulerOptions struct {
	ReservedOptions     map[string]string             `yaml:"reserve"`
	ProfessionalOptions *SchedulerProfessionalOptions `yaml:"professional"`
	Options             *SchedulerLitekubeOptions     `yaml:"options"`
	IgnoreOptions       map[string]string             `yaml:"-"`
}

struct to store args from input

func NewSchedulerOptions

func NewSchedulerOptions() *SchedulerOptions

func (*SchedulerOptions) CheckReservedOptions

func (opt *SchedulerOptions) CheckReservedOptions() error

delete keys already be disable or define in other block

func (*SchedulerOptions) HelpSection

func (opt *SchedulerOptions) HelpSection() *help.Section

func (*SchedulerOptions) PrintFlags

func (opt *SchedulerOptions) PrintFlags(prefix string, printFunc func(format string, a ...interface{}) error) error

print all flags

func (*SchedulerOptions) ToMap

func (opt *SchedulerOptions) ToMap() (map[string]string, error)

type SchedulerProfessionalOptions

type SchedulerProfessionalOptions struct {
	BindAddress              string `yaml:"bind-address"`
	SecurePort               uint16 `yaml:"secure-port"`
	LeaderElect              bool   `yaml:"leader-elect"`
	KubeConfig               string `yaml:"kubeconfig"`
	AuthorizationKubeconfig  string `yaml:"authorization-kubeconfig"`
	AuthenticationKubeconfig string `yaml:"authentication-kubeconfig"`
}

Empirically assigned parameters are not recommended

var DefaultSPO SchedulerProfessionalOptions = SchedulerProfessionalOptions{
	BindAddress: "0.0.0.0",
	SecurePort:  10259,
	LeaderElect: false,
}

func NewSchedulerProfessionalOptions

func NewSchedulerProfessionalOptions() *SchedulerProfessionalOptions

func (*SchedulerProfessionalOptions) AddTips

func (opt *SchedulerProfessionalOptions) AddTips(section *help.Section)

Jump to

Keyboard shortcuts

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