DRA API: fix some comments

Wording in one case was wrong. The tombstone comment should use
the same field definition as before the removal.
This commit is contained in:
Patrick Ohly 2024-10-18 15:15:00 +02:00
parent 7b3a9afca3
commit 51d5992335
2 changed files with 3 additions and 3 deletions

View File

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

View File

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