DRA API: rename DeviceCapacity.Quantity to DeviceCapacity.Value

Based on review
feedback (https://github.com/kubernetes/kubernetes/pull/127511#discussion_r1823521172).
This commit is contained in:
Patrick Ohly 2024-10-31 21:30:28 +01:00
parent 0b8a85c54a
commit 30f5282656
23 changed files with 164 additions and 165 deletions

View File

@ -16343,13 +16343,13 @@
"io.k8s.api.resource.v1beta1.DeviceCapacity": {
"description": "DeviceCapacity describes a quantity associated with a device.",
"properties": {
"quantity": {
"value": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity",
"description": "Quantity defines how much of a certain device capacity is available."
"description": "Value defines how much of a certain device capacity is available."
}
},
"required": [
"quantity"
"value"
],
"type": "object"
},

View File

@ -264,17 +264,17 @@
"io.k8s.api.resource.v1beta1.DeviceCapacity": {
"description": "DeviceCapacity describes a quantity associated with a device.",
"properties": {
"quantity": {
"value": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.api.resource.Quantity"
}
],
"description": "Quantity defines how much of a certain device capacity is available."
"description": "Value defines how much of a certain device capacity is available."
}
},
"required": [
"quantity"
"value"
],
"type": "object"
},

View File

@ -219,10 +219,10 @@ type BasicDevice struct {
// DeviceCapacity describes a quantity associated with a device.
type DeviceCapacity struct {
// Quantity defines how much of a certain device capacity is available.
// Value defines how much of a certain device capacity is available.
//
// +required
Quantity resource.Quantity
Value resource.Quantity
// potential future addition: fields which define how to "consume"
// capacity (= share a single device between different consumers).

View File

@ -42,11 +42,11 @@ func addConversionFuncs(scheme *runtime.Scheme) error {
}
func Convert_resource_DeviceCapacity_To_resource_Quantity(in *resourceapi.DeviceCapacity, out *resource.Quantity, s conversion.Scope) error {
*out = in.Quantity
*out = in.Value
return nil
}
func Convert_resource_Quantity_To_resource_DeviceCapacity(in *resource.Quantity, out *resourceapi.DeviceCapacity, s conversion.Scope) error {
out.Quantity = *in
out.Value = *in
return nil
}

View File

@ -530,7 +530,7 @@ func Convert_resource_DeviceAttribute_To_v1beta1_DeviceAttribute(in *resource.De
}
func autoConvert_v1beta1_DeviceCapacity_To_resource_DeviceCapacity(in *resourcev1beta1.DeviceCapacity, out *resource.DeviceCapacity, s conversion.Scope) error {
out.Quantity = in.Quantity
out.Value = in.Value
return nil
}
@ -540,7 +540,7 @@ func Convert_v1beta1_DeviceCapacity_To_resource_DeviceCapacity(in *resourcev1bet
}
func autoConvert_resource_DeviceCapacity_To_v1beta1_DeviceCapacity(in *resource.DeviceCapacity, out *resourcev1beta1.DeviceCapacity, s conversion.Scope) error {
out.Quantity = in.Quantity
out.Value = in.Value
return nil
}

View File

@ -40,7 +40,7 @@ func testAttributes() map[resourceapi.QualifiedName]resourceapi.DeviceAttribute
func testCapacity() map[resourceapi.QualifiedName]resourceapi.DeviceCapacity {
return map[resourceapi.QualifiedName]resourceapi.DeviceCapacity{
"memory": {Quantity: resource.MustParse("1Gi")},
"memory": {Value: resource.MustParse("1Gi")},
}
}
@ -418,7 +418,7 @@ func TestValidateResourceSlice(t *testing.T) {
slice.Spec.Devices[1].Basic.Attributes = map[resourceapi.QualifiedName]resourceapi.DeviceAttribute{}
slice.Spec.Devices[1].Basic.Capacity = map[resourceapi.QualifiedName]resourceapi.DeviceCapacity{}
quantity := resource.MustParse("1Gi")
capacity := resourceapi.DeviceCapacity{Quantity: quantity}
capacity := resourceapi.DeviceCapacity{Value: quantity}
for i := 0; i < resourceapi.ResourceSliceMaxAttributesAndCapacitiesPerDevice; i++ {
slice.Spec.Devices[1].Basic.Capacity[resourceapi.QualifiedName(fmt.Sprintf("cap_%d", i))] = capacity
}

View File

@ -206,7 +206,7 @@ func (in *DeviceAttribute) DeepCopy() *DeviceAttribute {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DeviceCapacity) DeepCopyInto(out *DeviceCapacity) {
*out = *in
out.Quantity = in.Quantity.DeepCopy()
out.Value = in.Value.DeepCopy()
return
}

View File

@ -47892,14 +47892,14 @@ func schema_k8sio_api_resource_v1beta1_DeviceCapacity(ref common.ReferenceCallba
Description: "DeviceCapacity describes a quantity associated with a device.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"quantity": {
"value": {
SchemaProps: spec.SchemaProps{
Description: "Quantity defines how much of a certain device capacity is available.",
Description: "Value defines how much of a certain device capacity is available.",
Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
},
},
},
Required: []string{"quantity"},
Required: []string{"value"},
},
},
Dependencies: []string{

View File

@ -985,124 +985,123 @@ func init() {
}
var fileDescriptor_ba331e3ec6484c27 = []byte{
// 1862 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcb, 0x6f, 0x1c, 0x49,
0x19, 0x77, 0xbb, 0xed, 0xf1, 0xf8, 0x1b, 0xbf, 0x52, 0x81, 0xc5, 0xeb, 0x88, 0x99, 0xa4, 0x23,
0xc1, 0x6c, 0x36, 0xe9, 0x49, 0x0c, 0x44, 0x51, 0xb8, 0x30, 0xed, 0x78, 0x23, 0x43, 0xe2, 0x78,
0xcb, 0x6c, 0x88, 0x96, 0x5d, 0x44, 0x4d, 0x4f, 0x65, 0xdc, 0xb8, 0xa7, 0xbb, 0xd3, 0x5d, 0x6d,
0xd6, 0x07, 0x04, 0xda, 0xf3, 0x0a, 0x71, 0x47, 0x5c, 0x91, 0x90, 0x38, 0xf0, 0x17, 0x80, 0x04,
0x42, 0x8a, 0x38, 0xc0, 0x0a, 0x2e, 0x2b, 0x0e, 0x03, 0x99, 0xbd, 0x70, 0xe3, 0x9e, 0x13, 0xaa,
0xea, 0xea, 0xe7, 0x4c, 0x0f, 0x6d, 0xb4, 0x58, 0xbb, 0xb7, 0xe9, 0xef, 0x5d, 0xdf, 0xa3, 0xbe,
0x5f, 0xf7, 0xc0, 0xeb, 0xc7, 0x77, 0x02, 0xdd, 0x72, 0x3b, 0xc4, 0xb3, 0x3a, 0x3e, 0x0d, 0xdc,
0xd0, 0x37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b, 0xa2, 0x22, 0x57, 0x2b, 0x6c, 0xce, 0xf2, 0xa5, 0x69, 0x74, 0x9f, 0xbf,
0x68, 0xce, 0x7d, 0xf8, 0xa2, 0x39, 0xf7, 0xd1, 0x8b, 0xe6, 0xdc, 0x4f, 0xc6, 0x4d, 0xe5, 0xf9,
0xb8, 0xa9, 0x7c, 0x38, 0x6e, 0x2a, 0x1f, 0x8d, 0x9b, 0xca, 0x3f, 0xc7, 0x4d, 0xe5, 0x67, 0x1f,
0x37, 0xe7, 0xde, 0xbe, 0x34, 0xe3, 0x5f, 0xbe, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x42, 0x0c,
0x39, 0x8d, 0x03, 0x1c, 0x00, 0x00,
// 1855 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x19, 0xcd, 0x6f, 0xdc, 0x58,
0x3d, 0x1e, 0x67, 0x26, 0xc9, 0x6f, 0xf2, 0xd5, 0x57, 0x58, 0xb2, 0xa9, 0x98, 0x69, 0x5d, 0x09,
0x66, 0xbb, 0xad, 0xa7, 0x09, 0x50, 0x55, 0xe5, 0xc2, 0x38, 0xc9, 0x56, 0x81, 0x26, 0xcd, 0xbe,
0xb0, 0xa1, 0x5a, 0x76, 0x11, 0x6f, 0x3c, 0x2f, 0x13, 0x13, 0x8f, 0xed, 0xda, 0xcf, 0x61, 0x73,
0x40, 0xa0, 0x3d, 0xaf, 0x10, 0x77, 0xc4, 0x15, 0x09, 0x89, 0x03, 0x7f, 0x01, 0x48, 0x20, 0xa4,
0x8a, 0x03, 0xac, 0xe0, 0xb2, 0xe2, 0x30, 0xd0, 0xd9, 0x0b, 0x37, 0xee, 0x39, 0x21, 0x3f, 0x3f,
0x7f, 0xce, 0x78, 0x70, 0xd0, 0x12, 0xed, 0xde, 0xc6, 0xbf, 0xef, 0xef, 0xdf, 0xcf, 0x1e, 0x78,
0xfd, 0xf4, 0x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 0x3f, 0x1f, 0xfc, 0x4e, 0x31, 0xcd, 0x80, 0x20,
0x3a, 0x90, 0x93, 0x3b, 0x45, 0xc0, 0x71, 0x4c, 0x81, 0xf6, 0x93, 0xcd, 0x59, 0xe3, 0x19, 0xb9,
0x5d, 0x62, 0x73, 0x16, 0x2f, 0x4d, 0xad, 0xf3, 0xe2, 0x65, 0x63, 0xe6, 0xc3, 0x97, 0x8d, 0x99,
0x8f, 0x5e, 0x36, 0x66, 0x7e, 0x32, 0x6a, 0x48, 0x2f, 0x46, 0x0d, 0xe9, 0xc3, 0x51, 0x43, 0xfa,
0x68, 0xd4, 0x90, 0xfe, 0x39, 0x6a, 0x48, 0x3f, 0xfb, 0xb8, 0x31, 0xf3, 0xf6, 0x8d, 0x29, 0x7f,
0xee, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0x71, 0xc4, 0xd3, 0x93, 0xfa, 0x1b, 0x00, 0x00,
}
func (m *AllocationResult) Marshal() (dAtA []byte, err error) {
@ -1470,7 +1469,7 @@ func (m *DeviceCapacity) MarshalToSizedBuffer(dAtA []byte) (int, error) {
var l int
_ = l
{
size, err := m.Quantity.MarshalToSizedBuffer(dAtA[:i])
size, err := m.Value.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@ -2735,7 +2734,7 @@ func (m *DeviceCapacity) Size() (n int) {
}
var l int
_ = l
l = m.Quantity.Size()
l = m.Value.Size()
n += 1 + l + sovGenerated(uint64(l))
return n
}
@ -3260,7 +3259,7 @@ func (this *DeviceCapacity) String() string {
return "nil"
}
s := strings.Join([]string{`&DeviceCapacity{`,
`Quantity:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Quantity), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`,
`Value:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Value), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`,
`}`,
}, "")
return s
@ -4689,7 +4688,7 @@ func (m *DeviceCapacity) Unmarshal(dAtA []byte) error {
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Quantity", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@ -4716,7 +4715,7 @@ func (m *DeviceCapacity) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Quantity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex

View File

@ -206,10 +206,10 @@ message DeviceAttribute {
// DeviceCapacity describes a quantity associated with a device.
message DeviceCapacity {
// Quantity defines how much of a certain device capacity is available.
// Value defines how much of a certain device capacity is available.
//
// +required
optional .k8s.io.apimachinery.pkg.api.resource.Quantity quantity = 1;
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1;
}
// DeviceClaim defines how to request devices with a ResourceClaim.

View File

@ -222,10 +222,10 @@ type BasicDevice struct {
// DeviceCapacity describes a quantity associated with a device.
type DeviceCapacity struct {
// Quantity defines how much of a certain device capacity is available.
// Value defines how much of a certain device capacity is available.
//
// +required
Quantity resource.Quantity `json:"quantity" protobuf:"bytes,1,rep,name=quantity"`
Value resource.Quantity `json:"value" protobuf:"bytes,1,rep,name=value"`
// potential future addition: fields which define how to "consume"
// capacity (= share a single device between different consumers).

View File

@ -99,8 +99,8 @@ func (DeviceAttribute) SwaggerDoc() map[string]string {
}
var map_DeviceCapacity = map[string]string{
"": "DeviceCapacity describes a quantity associated with a device.",
"quantity": "Quantity defines how much of a certain device capacity is available.",
"": "DeviceCapacity describes a quantity associated with a device.",
"value": "Value defines how much of a certain device capacity is available.",
}
func (DeviceCapacity) SwaggerDoc() map[string]string {

View File

@ -206,7 +206,7 @@ func (in *DeviceAttribute) DeepCopy() *DeviceAttribute {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DeviceCapacity) DeepCopyInto(out *DeviceCapacity) {
*out = *in
out.Quantity = in.Quantity.DeepCopy()
out.Value = in.Value.DeepCopy()
return
}

View File

@ -90,7 +90,7 @@
},
"capacity": {
"capacityKey": {
"quantity": "0"
"value": "0"
}
}
}

View File

@ -44,7 +44,7 @@ spec:
version: versionValue
capacity:
capacityKey:
quantity: "0"
value: "0"
name: nameValue
driver: driverValue
nodeName: nodeNameValue

View File

@ -12821,7 +12821,7 @@ var schemaYAML = typed.YAMLObject(`types:
- name: io.k8s.api.resource.v1beta1.DeviceCapacity
map:
fields:
- name: quantity
- name: value
type:
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
- name: io.k8s.api.resource.v1beta1.DeviceClaim

View File

@ -25,7 +25,7 @@ import (
// DeviceCapacityApplyConfiguration represents a declarative configuration of the DeviceCapacity type for use
// with apply.
type DeviceCapacityApplyConfiguration struct {
Quantity *resource.Quantity `json:"quantity,omitempty"`
Value *resource.Quantity `json:"value,omitempty"`
}
// DeviceCapacityApplyConfiguration constructs a declarative configuration of the DeviceCapacity type for use with
@ -34,10 +34,10 @@ func DeviceCapacity() *DeviceCapacityApplyConfiguration {
return &DeviceCapacityApplyConfiguration{}
}
// WithQuantity sets the Quantity field in the declarative configuration to the given value
// WithValue sets the Value field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Quantity field is set to the value of the last call.
func (b *DeviceCapacityApplyConfiguration) WithQuantity(value resource.Quantity) *DeviceCapacityApplyConfiguration {
b.Quantity = &value
// If called multiple times, the Value field is set to the value of the last call.
func (b *DeviceCapacityApplyConfiguration) WithValue(value resource.Quantity) *DeviceCapacityApplyConfiguration {
b.Value = &value
return b
}

View File

@ -64,5 +64,5 @@ type DeviceAttribute struct {
}
type DeviceCapacity struct {
Quantity resource.Quantity
Value resource.Quantity
}

View File

@ -195,7 +195,7 @@ func Convert_v1beta1_DeviceAttribute_To_api_DeviceAttribute(in *v1beta1.DeviceAt
}
func autoConvert_api_DeviceCapacity_To_v1beta1_DeviceCapacity(in *DeviceCapacity, out *v1beta1.DeviceCapacity, s conversion.Scope) error {
out.Quantity = in.Quantity
out.Value = in.Value
return nil
}
@ -205,7 +205,7 @@ func Convert_api_DeviceCapacity_To_v1beta1_DeviceCapacity(in *DeviceCapacity, ou
}
func autoConvert_v1beta1_DeviceCapacity_To_api_DeviceCapacity(in *v1beta1.DeviceCapacity, out *DeviceCapacity, s conversion.Scope) error {
out.Quantity = in.Quantity
out.Value = in.Value
return nil
}

View File

@ -215,7 +215,7 @@ func (c CompilationResult) DeviceMatches(ctx context.Context, input Device) (boo
if capacity[domain] == nil {
capacity[domain] = make(map[string]apiservercel.Quantity)
}
capacity[domain].(map[string]apiservercel.Quantity)[id] = apiservercel.Quantity{Quantity: &cap.Quantity}
capacity[domain].(map[string]apiservercel.Quantity)[id] = apiservercel.Quantity{Quantity: &cap.Value}
}
variables := map[string]any{

View File

@ -149,14 +149,14 @@ var testcases = map[string]struct {
},
"quantity": {
expression: `device.capacity["dra.example.com"].name.isGreaterThan(quantity("1Ki"))`,
capacity: map[resourceapi.QualifiedName]resourceapi.DeviceCapacity{"name": {Quantity: resource.MustParse("1Mi")}},
capacity: map[resourceapi.QualifiedName]resourceapi.DeviceCapacity{"name": {Value: resource.MustParse("1Mi")}},
driver: "dra.example.com",
expectMatch: true,
expectCost: 6,
},
"check-positive": {
expression: `"name" in device.capacity["dra.example.com"] && device.capacity["dra.example.com"].name.isGreaterThan(quantity("1Ki"))`,
capacity: map[resourceapi.QualifiedName]resourceapi.DeviceCapacity{"name": {Quantity: resource.MustParse("1Mi")}},
capacity: map[resourceapi.QualifiedName]resourceapi.DeviceCapacity{"name": {Value: resource.MustParse("1Mi")}},
driver: "dra.example.com",
expectMatch: true,
expectCost: 10,
@ -186,7 +186,7 @@ device.attributes["dra.example.com"]["version"].isGreaterThan(semver("0.0.1"))
"version": {VersionValue: ptr.To("1.0.0")},
},
capacity: map[resourceapi.QualifiedName]resourceapi.DeviceCapacity{
"quantity": {Quantity: resource.MustParse("1Mi")},
"quantity": {Value: resource.MustParse("1Mi")},
},
driver: "dra.example.com",
expectMatch: true,

View File

@ -193,7 +193,7 @@ func device(name string, capacity map[resourceapi.QualifiedName]resource.Quantit
}
device.Basic.Capacity = make(map[resourceapi.QualifiedName]resourceapi.DeviceCapacity, len(capacity))
for name, quantity := range capacity {
device.Basic.Capacity[name] = resourceapi.DeviceCapacity{Quantity: quantity}
device.Basic.Capacity[name] = resourceapi.DeviceCapacity{Value: quantity}
}
return device
}

View File

@ -231,7 +231,7 @@ func resourceSlice(driverName, nodeName string, capacity int) *resourceapi.Resou
"dra.example.com/numa": {IntValue: ptr.To(int64(i))},
},
Capacity: map[resourceapi.QualifiedName]resourceapi.DeviceCapacity{
"memory": {Quantity: resource.MustParse("1Gi")},
"memory": {Value: resource.MustParse("1Gi")},
},
},
},