mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-09 00:26:58 +00:00
Modified LimitRangeItem.Kind to LimitRangeItem.Type, added example files
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user