Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { // We need to store taints and labels separately from the node type: the latter only includes // indexed taints and labels, but we need all of them when checking pod requirements. Taints []v1.Taint Labels map[string]string TotalResources schedulerobjects.ResourceList // This field is set when inserting the Node into a NodeDb. Keys [][]byte AllocatableByPriority schedulerobjects.AllocatableByPriorityAndResourceType AllocatedByQueue map[string]schedulerobjects.ResourceList AllocatedByJobId map[string]schedulerobjects.ResourceList EvictedJobRunIds map[string]bool // contains filtered or unexported fields }
func CreateNode ¶ added in v0.4.37
func CreateNode( id string, nodeTypeId uint64, index uint64, executor string, name string, taints []v1.Taint, labels map[string]string, totalResources schedulerobjects.ResourceList, allocatableByPriority schedulerobjects.AllocatableByPriorityAndResourceType, allocatedByQueue map[string]schedulerobjects.ResourceList, allocatedByJobId map[string]schedulerobjects.ResourceList, evictedJobRunIds map[string]bool, keys [][]byte, ) *Node
func (*Node) GetExecutor ¶ added in v0.4.37
func (*Node) GetNodeTypeId ¶ added in v0.4.37
func (*Node) UnsafeCopy ¶
UnsafeCopy returns a pointer to a new value of type Node; it is unsafe because it only makes shallow copies of fields that are not mutated by methods of NodeDb.
Click to show internal directories.
Click to hide internal directories.