You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/swagger-spec/v1.json
+1-9
Original file line number
Diff line number
Diff line change
@@ -11575,15 +11575,7 @@
11575
11575
},
11576
11576
"default": {
11577
11577
"type": "any",
11578
-
"description": "Default resource requirement limit value by resource name if resource limit is omitted."
11579
-
},
11580
-
"defaultRequest": {
11581
-
"type": "any",
11582
-
"description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted."
11583
-
},
11584
-
"maxLimitRequestRatio": {
11585
-
"type": "any",
11586
-
"description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource."
11578
+
"description": "Default usage constraints on this kind by resource name. Default values on this kind by resource name if omitted."
//MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
TypeLimitType`json:"type,omitempty" description:"type of resource that this limit applies to"`
70
+
// Max usage constraints on this kind by resource name
71
+
MaxResourceList`json:"max,omitempty" description:"max usage constraints on this kind by resource name"`
72
+
// Min usage constraints on this kind by resource name
73
+
MinResourceList`json:"min,omitempty" description:"min usage constraints on this kind by resource name"`
74
+
// Default resource limits on this kind by resource name
75
+
DefaultResourceList`json:"default,omitempty" description:"default resource limits values on this kind by resource name if omitted"`
76
+
//DefaultRequests resource requests on this kind by resource name
77
+
DefaultRequestsResourceList`json:"defaultRequests,omitempty" description:"default resource requests values on this kind by resource name if omitted"`
78
+
//LimitRequestRatio is the ratio of limit over request that is the maximum allowed burst for the named resource
79
+
LimitRequestRatioResourceList`json:"limitRequestRatio,omitempty" description:"the ratio of limit over request that is the maximum allowed burst for the named resource. if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value"`
80
80
}
81
81
82
-
// LimitRangeSpec defines a min/max usage limit for resources that match on kind.
82
+
// LimitRangeSpec defines a min/max usage limit for resources that match on kind
83
83
typeLimitRangeSpecstruct {
84
-
// Limits is the list of LimitRangeItem objects that are enforced.
85
-
Limits []LimitRangeItem`json:"limits"`
84
+
// Limits is the list of LimitRangeItem objects that are enforced
85
+
Limits []LimitRangeItem`json:"limits" description:"limits is the list of LimitRangeItem objects that are enforced"`
86
86
}
87
87
88
-
// LimitRange sets resource usage limits for each kind of resource in a Namespace.
88
+
// LimitRange sets resource usage limits for each kind of resource in a Namespace
89
89
typeLimitRangestruct {
90
-
TypeMeta`json:",inline"`
91
-
// Standard object's metadata.
92
-
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
93
-
ObjectMeta`json:"metadata,omitempty"`
90
+
TypeMeta`json:",inline"`
91
+
ObjectMeta`json:"metadata,omitempty" description:"standard object metadata; see http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata"`
94
92
95
-
// Spec defines the limits enforced.
96
-
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
97
-
SpecLimitRangeSpec`json:"spec,omitempty"`
93
+
// Spec defines the limits enforced
94
+
SpecLimitRangeSpec`json:"spec,omitempty" description:"spec defines the limits enforced; http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status"`
98
95
}
99
96
100
97
// LimitRangeList is a list of LimitRange items.
101
98
typeLimitRangeListstruct {
102
99
TypeMeta`json:",inline"`
103
-
// Standard list metadata.
104
-
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds
105
-
ListMeta`json:"metadata,omitempty"`
100
+
ListMeta`json:"metadata,omitempty" description:"standard list metadata; see http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata"`
106
101
107
-
// Items is a list of LimitRange objects.
108
-
// More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md
109
-
Items []LimitRange`json:"items"`
102
+
// Items is a list of LimitRange objects
103
+
Items []LimitRange`json:"items" description:"items is a list of LimitRange objects; see http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md"`
110
104
}
111
105
```
112
106
113
107
### Validation
114
108
115
109
Validation of a **LimitRange** enforces that for a given named resource the following rules apply:
116
110
117
-
Min (if specified) <= DefaultRequest (if specified) <= Default (if specified) <= Max (if specified)
111
+
Min (if specified) <= DefaultRequests (if specified) <= Default (if specified) <= Max (if specified)
118
112
119
113
### Default Value Behavior
120
114
@@ -127,11 +121,11 @@ if LimitRangeItem.Default[resourceName] is undefined
127
121
```
128
122
129
123
```
130
-
if LimitRangeItem.DefaultRequest[resourceName] is undefined
124
+
if LimitRangeItem.DefaultRequests[resourceName] is undefined
131
125
if LimitRangeItem.Default[resourceName] is defined
0 commit comments