Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OnDemandNodeLabel label for on-demand instances. OnDemandNodeLabel = "kubernetes.io/role=worker" // SpotNodeLabel label for spot instances. SpotNodeLabel = "kubernetes.io/role=spot-worker" // OnDemand key for on-demand instances of NodesMap. OnDemand NodeType // Spot key for spot instances of NodesMap. Spot NodeType = 1 )
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map map[NodeType]NodeInfoArray
Map map of NodeInfoArray.
func NewNodeMap ¶
NewNodeMap creates a new NodesMap from a list of Nodes.
type NodeInfo ¶
NodeInfo struct containing node and it's pods as well information resources on the node.
type NodeInfoArray ¶
type NodeInfoArray []*NodeInfo
NodeInfoArray array of NodeInfo pointers.
func (NodeInfoArray) CopyNodeInfos ¶
func (n NodeInfoArray) CopyNodeInfos() NodeInfoArray
CopyNodeInfos returns an array of copies of the NodeInfos in this array.
Click to show internal directories.
Click to hide internal directories.