Documentation
¶
Index ¶
Constants ¶
View Source
const (
RequestsMustNotBeAboveLimitRangeMaxMessage = "requests must not be above the limitRange max"
RequestsMustNotBeBelowLimitRangeMinMessage = "requests must not be below the limitRange min"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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
func (Summary) ValidatePodSpec ¶ added in v0.4.0
func (s Summary) ValidatePodSpec(ps *corev1.PodSpec, path *field.Path) field.ErrorList
ValidatePodSpec verifies if the provided podSpec (ps) first into the boundaries of the summary (s).
Click to show internal directories.
Click to hide internal directories.