Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FailedCreatePodReason is added in an event and in a replica set condition // when a pod for a replica set is failed to be created. FailedCreatePodReason = "FailedCreate" // SuccessfulCreatePodReason is added in an event when a pod for a replica set // is successfully created. SuccessfulCreatePodReason = "SuccessfulCreate" // FailedDeletePodReason is added in an event and in a replica set condition // when a pod for a replica set is failed to be deleted. FailedDeletePodReason = "FailedDelete" // SuccessfulDeletePodReason is added in an event when a pod for a replica set // is successfully deleted. SuccessfulDeletePodReason = "SuccessfulDelete" )
Reasons for pod events.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TaskPriority ¶
TaskPriority structure.
type TasksPriority ¶
type TasksPriority []TaskPriority
TasksPriority is a slice of TaskPriority.
func (TasksPriority) CalcFirstCountResources ¶ added in v1.10.0
func (p TasksPriority) CalcFirstCountResources(count int32) v1.ResourceList
CalcFirstCountResources return the first count tasks resource, sorted by priority
func (TasksPriority) CalcPGMinResources ¶ added in v1.10.0
func (p TasksPriority) CalcPGMinResources(jobMinAvailable int32) v1.ResourceList
CalcPGMinResources sums up all task's min available; if not enough, then fill up to jobMinAvailable via task's replicas
func (TasksPriority) Len ¶
func (p TasksPriority) Len() int
func (TasksPriority) Less ¶
func (p TasksPriority) Less(i, j int) bool
func (TasksPriority) Swap ¶
func (p TasksPriority) Swap(i, j int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.