Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerOption ¶
type ServerOption struct { Master string Kubeconfig string Dispatcher bool AgentConfigs string SecurePort int DynamicPriority bool // If DynamicPriority=true then no preemption is allowed by program logic Preemption bool // Preemption is not allowed under DynamicPriority BackoffTime int // Number of seconds a job will go away for, if it can not be scheduled. Default is 20. // Head of line job will not be bumped away for at least HeadOfLineHoldingTime seconds by higher priority jobs. // Default setting to 0 disables this mechanism. HeadOfLineHoldingTime int QuotaEnabled bool // Controller is to evaluate quota per request QuotaRestURL string HealthProbeListenAddr string DispatchResourceReservationTimeout int64 }
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 *flag.FlagSet)
AddFlags adds flags for a specific CMServer to the specified FlagSet
Click to show internal directories.
Click to hide internal directories.