mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Use k8s.io docs for memory/cpu request/limit
This commit is contained in:
@@ -2477,13 +2477,13 @@ message ResourceQuotaStatus {
|
||||
// ResourceRequirements describes the compute resource requirements.
|
||||
message ResourceRequirements {
|
||||
// Limits describes the maximum amount of compute resources allowed.
|
||||
// More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications
|
||||
// More info: http://kubernetes.io/docs/user-guide/compute-resources/
|
||||
map<string, k8s.io.kubernetes.pkg.api.resource.Quantity> limits = 1;
|
||||
|
||||
// Requests describes the minimum amount of compute resources required.
|
||||
// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
|
||||
// otherwise to an implementation-defined value.
|
||||
// More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications
|
||||
// More info: http://kubernetes.io/docs/user-guide/compute-resources/
|
||||
map<string, k8s.io.kubernetes.pkg.api.resource.Quantity> requests = 2;
|
||||
}
|
||||
|
||||
|
||||
@@ -1089,12 +1089,12 @@ type Capabilities struct {
|
||||
// ResourceRequirements describes the compute resource requirements.
|
||||
type ResourceRequirements struct {
|
||||
// Limits describes the maximum amount of compute resources allowed.
|
||||
// More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications
|
||||
// More info: http://kubernetes.io/docs/user-guide/compute-resources/
|
||||
Limits ResourceList `json:"limits,omitempty" protobuf:"bytes,1,rep,name=limits,casttype=ResourceList,castkey=ResourceName"`
|
||||
// Requests describes the minimum amount of compute resources required.
|
||||
// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
|
||||
// otherwise to an implementation-defined value.
|
||||
// More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications
|
||||
// More info: http://kubernetes.io/docs/user-guide/compute-resources/
|
||||
Requests ResourceList `json:"requests,omitempty" protobuf:"bytes,2,rep,name=requests,casttype=ResourceList,castkey=ResourceName"`
|
||||
}
|
||||
|
||||
|
||||
@@ -1495,8 +1495,8 @@ func (ResourceQuotaStatus) SwaggerDoc() map[string]string {
|
||||
|
||||
var map_ResourceRequirements = map[string]string{
|
||||
"": "ResourceRequirements describes the compute resource requirements.",
|
||||
"limits": "Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications",
|
||||
"requests": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications",
|
||||
"limits": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/",
|
||||
"requests": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/",
|
||||
}
|
||||
|
||||
func (ResourceRequirements) SwaggerDoc() map[string]string {
|
||||
|
||||
Reference in New Issue
Block a user