Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MCADConfiguration ¶
type MCADConfiguration struct { // dynamicPriority sets the controller to use dynamic priority. // If false, it sets the controller to use static priority. // It defaults to false. // +optional DynamicPriority *bool `json:"dynamicPriority,omitempty"` // preemption sets the controller to allow preemption. // Note: when set to true, the Kubernetes scheduler must be configured // to enable preemption. It defaults to false. // +optional Preemption *bool `json:"preemption,omitempty"` // backoffTime defines the duration, in seconds, a job will go away, // if it can not be scheduled. // +optional BackoffTime *int32 `json:"backoffTime,omitempty"` // headOfLineHoldingTime defines the duration in seconds a job can stay at the // Head Of Line without being bumped. // It defaults to 0. // +optional HeadOfLineHoldingTime *int32 `json:"headOfLineHoldingTime,omitempty"` // quotaEnabled sets whether quota management is enabled. // It defaults to false. // +optional QuotaEnabled *bool `json:"quotaEnabled,omitempty"` }
MCADConfiguration defines the core MCAD configuration.
func (*MCADConfiguration) BackoffTimeOrDefault ¶
func (c *MCADConfiguration) BackoffTimeOrDefault(val int32) int32
func (*MCADConfiguration) HasDynamicPriority ¶
func (c *MCADConfiguration) HasDynamicPriority() bool
func (*MCADConfiguration) HasPreemption ¶
func (c *MCADConfiguration) HasPreemption() bool
func (*MCADConfiguration) IsQuotaEnabled ¶
func (c *MCADConfiguration) IsQuotaEnabled() bool
type MCADConfigurationExtended ¶
type MCADConfigurationExtended struct { // dispatcher sets the controller in dispatcher mode, of in agent mode. // It defaults to false. // +optional Dispatcher *bool `json:"dispatcher,omitempty"` // agentConfigs contains paths to agent config file AgentConfigs []string `json:"agentConfigs,omitempty"` }
MCADConfigurationExtended defines the extended MCAD configuration, e.g., for experimental features.
func (*MCADConfigurationExtended) IsDispatcher ¶
func (e *MCADConfigurationExtended) IsDispatcher() bool
Click to show internal directories.
Click to hide internal directories.