Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeUsage ¶
type NodeUsage struct {
// contains filtered or unexported fields
}
func DescribeNodeResource ¶
Returns the summatory of resources requested and their limits by a list of pods on a specific node in fraction values.
func (*NodeUsage) Externalize ¶
func (nu *NodeUsage) Externalize(node v1.Node) *NodeWithUsageData
type NodeWithUsageData ¶
type NodeWithUsageData struct { Name string `json:"name"` FractionCpuReqs float64 `json:"cpu_reqs"` FractionCpuLimits float64 `json:"cpu_limits"` FractionMemoryReqs float64 `json:"memory_reqs"` FractionMemoryLimits float64 `json:"memory_limits"` FractionEphemeralStorageReqs float64 `json:"ephemeral_storage_reqs"` FractionEphemeralStorageLimits float64 `json:"ephemeral_storage_limits"` Condition []v1.NodeCondition `json:"node_conditions"` }
func GetNodesUsage ¶
func GetNodesUsage(clientset kubernetes.Interface) []*NodeWithUsageData
Click to show internal directories.
Click to hide internal directories.