mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-30 17:01:59 +00:00
DRA API: rename DeviceCapacity.Quantity to DeviceCapacity.Value
Based on review feedback (https://github.com/kubernetes/kubernetes/pull/127511#discussion_r1823521172). Kubernetes-commit: 30f52826560129839922e1756730b02f184f0ef9
This commit is contained in:
parent
f65974c297
commit
4e05c623ae
@ -12821,7 +12821,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: io.k8s.api.resource.v1beta1.DeviceCapacity
|
- name: io.k8s.api.resource.v1beta1.DeviceCapacity
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
- name: quantity
|
- name: value
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
namedType: io.k8s.apimachinery.pkg.api.resource.Quantity
|
||||||
- name: io.k8s.api.resource.v1beta1.DeviceClaim
|
- name: io.k8s.api.resource.v1beta1.DeviceClaim
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
// DeviceCapacityApplyConfiguration represents a declarative configuration of the DeviceCapacity type for use
|
// DeviceCapacityApplyConfiguration represents a declarative configuration of the DeviceCapacity type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeviceCapacityApplyConfiguration struct {
|
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
|
// DeviceCapacityApplyConfiguration constructs a declarative configuration of the DeviceCapacity type for use with
|
||||||
@ -34,10 +34,10 @@ func DeviceCapacity() *DeviceCapacityApplyConfiguration {
|
|||||||
return &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.
|
// 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.
|
// If called multiple times, the Value field is set to the value of the last call.
|
||||||
func (b *DeviceCapacityApplyConfiguration) WithQuantity(value resource.Quantity) *DeviceCapacityApplyConfiguration {
|
func (b *DeviceCapacityApplyConfiguration) WithValue(value resource.Quantity) *DeviceCapacityApplyConfiguration {
|
||||||
b.Quantity = &value
|
b.Value = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user