Modified LimitRangeItem.Kind to LimitRangeItem.Type, added example files

This commit is contained in:
derekwaynecarr
2015-01-22 22:21:13 -05:00
parent 31a1145abd
commit 74f368f50e
16 changed files with 105 additions and 39 deletions

View File

@@ -1139,10 +1139,17 @@ type List struct {
Items []runtime.Object `json:"items"`
}
const (
// Limit that applies to all pods in a namespace
LimitTypePod string = "Pod"
// Limit that applies to all containers in a namespace
LimitTypeContainer string = "Container"
)
// LimitRangeItem defines a min/max usage limit for any resource that matches on kind
type LimitRangeItem struct {
// Kind is the resource kind that this limit range is applied (i.e. pods, etc.)
Kind string
// Type of resource that this limit applies to
Type string `json:"type,omitempty"`
// Max usage constraints on this kind by resource name
Max ResourceList `json:"max,omitempty"`
// Min usage constraints on this kind by resource name