Add maxItems limits to ResourceClaim

This commit is contained in:
Joe Betz 2025-09-18 15:22:21 -04:00 committed by Aaron Prindle
parent 50cc9905b6
commit 11df50453f
3 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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