mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-26 15:43:56 +00:00
Add maxItems limits to ResourceClaim
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user