mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
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:
parent
7b3a9afca3
commit
51d5992335
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user