Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TotalRequests ¶ added in v0.4.0
func TotalRequests(ps *corev1.PodSpec) corev1.ResourceList
TotalRequests computes the total resource requests of a pod. total = sum(max(sum(.containers[].requests), initContainers[].requests), overhead)
Types ¶
type Summary ¶
type Summary map[corev1.LimitType]corev1.LimitRangeItem
func Summarize ¶
func Summarize(ranges ...corev1.LimitRange) Summary
Summarize summarizes the provides ranges by: 1. keeping the lowest values for Max and MaxLimitReqestRatio limits 2. keeping the highest values for Min limits 3. keeping the first encountered values for Default and DefaultRequests
Click to show internal directories.
Click to hide internal directories.