diff --git a/pkg/apis/resource/types.go b/pkg/apis/resource/types.go index 279aebac721..7bf073c80a8 100644 --- a/pkg/apis/resource/types.go +++ b/pkg/apis/resource/types.go @@ -217,7 +217,7 @@ type BasicDevice struct { Capacity map[QualifiedName]resource.Quantity } -// Limit for the sum of the number of entries in both ResourceSlices. +// Limit for the sum of the number of entries in both attributes and capacity. const ResourceSliceMaxAttributesAndCapacitiesPerDevice = 32 // QualifiedName is the name of a device attribute or capacity. @@ -888,7 +888,7 @@ type DeviceClassSpec struct { // SuitableNodes is tombstoned since Kubernetes 1.32 where // it got removed. May be reused once decoding v1alpha3 is no longer // supported. - // SuitableNodes *v1.NodeSelector `json:"suitableNodes,omitempty" protobuf:"bytes,3,opt,name=suitableNodes"` + // SuitableNodes *core.NodeSelector } // DeviceClassConfiguration is used in DeviceClass. diff --git a/staging/src/k8s.io/api/resource/v1alpha3/types.go b/staging/src/k8s.io/api/resource/v1alpha3/types.go index 67d41749122..02087046643 100644 --- a/staging/src/k8s.io/api/resource/v1alpha3/types.go +++ b/staging/src/k8s.io/api/resource/v1alpha3/types.go @@ -220,7 +220,7 @@ type BasicDevice struct { Capacity map[QualifiedName]resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,2,rep,name=capacity"` } -// Limit for the sum of the number of entries in both ResourceSlices. +// Limit for the sum of the number of entries in both attributes and capacity. const ResourceSliceMaxAttributesAndCapacitiesPerDevice = 32 // QualifiedName is the name of a device attribute or capacity.