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
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)
Click to show internal directories.
Click to hide internal directories.