mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-14 00:07:28 -05:00
Add maxItems limits to ResourceClaim
This commit is contained in:
parent
50cc9905b6
commit
11df50453f
3 changed files with 9 additions and 0 deletions
|
|
@ -723,6 +723,7 @@ type DeviceClaim struct {
|
|||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
// +k8s:maxItems=32
|
||||
Requests []DeviceRequest `json:"requests" protobuf:"bytes,1,name=requests"`
|
||||
|
||||
// These constraints must be satisfied by the set of devices that get
|
||||
|
|
@ -730,6 +731,7 @@ type DeviceClaim struct {
|
|||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
// +k8s:maxItems=32
|
||||
Constraints []DeviceConstraint `json:"constraints,omitempty" protobuf:"bytes,2,opt,name=constraints"`
|
||||
|
||||
// This field holds configuration for multiple potential drivers which
|
||||
|
|
@ -738,6 +740,7 @@ type DeviceClaim struct {
|
|||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
// +k8s:maxItems=32
|
||||
Config []DeviceClaimConfiguration `json:"config,omitempty" protobuf:"bytes,3,opt,name=config"`
|
||||
|
||||
// Potential future extension, ignored by older schedulers. This is
|
||||
|
|
|
|||
|
|
@ -727,6 +727,7 @@ type DeviceClaim struct {
|
|||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
// +k8s:maxItems=32
|
||||
Requests []DeviceRequest `json:"requests" protobuf:"bytes,1,name=requests"`
|
||||
|
||||
// These constraints must be satisfied by the set of devices that get
|
||||
|
|
@ -734,6 +735,7 @@ type DeviceClaim struct {
|
|||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
// +k8s:maxItems=32
|
||||
Constraints []DeviceConstraint `json:"constraints,omitempty" protobuf:"bytes,2,opt,name=constraints"`
|
||||
|
||||
// This field holds configuration for multiple potential drivers which
|
||||
|
|
@ -742,6 +744,7 @@ type DeviceClaim struct {
|
|||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
// +k8s:maxItems=32
|
||||
Config []DeviceClaimConfiguration `json:"config,omitempty" protobuf:"bytes,3,opt,name=config"`
|
||||
|
||||
// Potential future extension, ignored by older schedulers. This is
|
||||
|
|
|
|||
|
|
@ -723,6 +723,7 @@ type DeviceClaim struct {
|
|||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
// +k8s:maxItems=32
|
||||
Requests []DeviceRequest `json:"requests" protobuf:"bytes,1,name=requests"`
|
||||
|
||||
// These constraints must be satisfied by the set of devices that get
|
||||
|
|
@ -730,6 +731,7 @@ type DeviceClaim struct {
|
|||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
// +k8s:maxItems=32
|
||||
Constraints []DeviceConstraint `json:"constraints,omitempty" protobuf:"bytes,2,opt,name=constraints"`
|
||||
|
||||
// This field holds configuration for multiple potential drivers which
|
||||
|
|
@ -738,6 +740,7 @@ type DeviceClaim struct {
|
|||
//
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
// +k8s:maxItems=32
|
||||
Config []DeviceClaimConfiguration `json:"config,omitempty" protobuf:"bytes,3,opt,name=config"`
|
||||
|
||||
// Potential future extension, ignored by older schedulers. This is
|
||||
|
|
|
|||
Loading…
Reference in a new issue