Skip to content

Commit

Permalink
Explicitly state the lack of support for 'Requests' for the purposes …
Browse files Browse the repository at this point in the history
…of scheduling.
  • Loading branch information
vishh committed May 4, 2015
1 parent fbe3ec7 commit 25ac1ef
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions pkg/api/types.go
Expand Up @@ -594,6 +594,9 @@ type ResourceRequirements struct {
// Limits describes the maximum amount of compute resources required.
Limits ResourceList `json:"limits,omitempty"`
// Requests describes the minimum amount of compute resources required.
// Note: 'Requests' are honored only for Persistent Volumes as of now.
// TODO: Update the scheduler to use 'Requests' in addition to 'Limits'. If Request is omitted for a container,
// it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value
Requests ResourceList `json:"requests,omitempty"`
}

Expand Down
3 changes: 3 additions & 0 deletions pkg/api/v1/types.go
Expand Up @@ -603,6 +603,9 @@ type ResourceRequirements struct {
// Limits describes the maximum amount of compute resources required.
Limits ResourceList `json:"limits,omitempty" description:"Maximum amount of compute resources allowed"`
// Requests describes the minimum amount of compute resources required.
// Note: 'Requests' are honored only for Persistent Volumes as of now.
// TODO: Update the scheduler to use 'Requests' in addition to 'Limits'. If Request is omitted for a container,
// it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value
Requests ResourceList `json:"requests,omitempty" description:"Minimum amount of resources requested"`
}

Expand Down
5 changes: 4 additions & 1 deletion pkg/api/v1beta1/types.go
Expand Up @@ -493,7 +493,10 @@ type ResourceRequirements struct {
// Limits describes the maximum amount of compute resources required.
Limits ResourceList `json:"limits,omitempty" description:"Maximum amount of compute resources allowed"`
// Requests describes the minimum amount of compute resources required.
Requests ResourceList `json:"requests,omitempty" description:"Minimum amount of resources requested"`
// Note: 'Requests' are honored only for Persistent Volumes as of now.
// TODO: Update the scheduler to use 'Requests' in addition to 'Limits'. If Request is omitted for a container,
// it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value
Requests ResourceList `json:"requests,omitempty" description:"Minimum amount of resources requested; requests are honored only for persistent volumes as of now"`
}

// Container represents a single container that is expected to be run on the host.
Expand Down
5 changes: 4 additions & 1 deletion pkg/api/v1beta2/types.go
Expand Up @@ -479,7 +479,10 @@ type ResourceRequirements struct {
// Limits describes the maximum amount of compute resources required.
Limits ResourceList `json:"limits,omitempty" description:"Maximum amount of compute resources allowed"`
// Requests describes the minimum amount of compute resources required.
Requests ResourceList `json:"requests,omitempty" description:"Minimum amount of resources requested"`
// Note: 'Requests' are honored only for Persistent Volumes as of now.
// TODO: Update the scheduler to use 'Requests' in addition to 'Limits'. If Request is omitted for a container,
// it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value
Requests ResourceList `json:"requests,omitempty" description:"Minimum amount of resources requested; requests are honored only for persistent volumes as of now"`
}

// Container represents a single container that is expected to be run on the host.
Expand Down
5 changes: 4 additions & 1 deletion pkg/api/v1beta3/types.go
Expand Up @@ -603,7 +603,10 @@ type ResourceRequirements struct {
// Limits describes the maximum amount of compute resources required.
Limits ResourceList `json:"limits,omitempty" description:"Maximum amount of compute resources allowed"`
// Requests describes the minimum amount of compute resources required.
Requests ResourceList `json:"requests,omitempty" description:"Minimum amount of resources requested"`
// Note: 'Requests' are honored only for Persistent Volumes as of now.
// TODO: Update the scheduler to use 'Requests' in addition to 'Limits'. If Request is omitted for a container,
// it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value
Requests ResourceList `json:"requests,omitempty" description:"Minimum amount of resources requested; requests are honored only for persistent volumes as of now"`
}

const (
Expand Down

0 comments on commit 25ac1ef

Please sign in to comment.