Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVirtualLimitRange ¶
func GetVirtualLimitRange(namespace string, lister corev1listers.LimitRangeLister) (*corev1.LimitRange, error)
GetVirtualLimitRange returns a pointer to a single LimitRange representing the most restrictive requirements of all LimitRanges present in the namespace, or a nil pointer if there are no LimitRanges. This LimitRange meets the following constraints: - Its max is the smallest max of all the LimitRanges - Its min is the largest min of all the LimitRanges - Its maxLimitRequestRatio is the smallest maxLimitRequestRatio of all the LimitRanges - Its default is the smallest default of any of the LimitRanges that fits within the minimum and maximum - Its defaultRequest is the smallest defaultRequest of any of the LimitRanges that fits within the minimum and maximum
This function isn't guaranteed to return a LimitRange with consistent constraints. For example, the minimum could be greater than the maximum.
Types ¶
This section is empty.