diff --git a/applyconfigurations/internal/internal.go b/applyconfigurations/internal/internal.go index 20d28dad..003e2fdd 100644 --- a/applyconfigurations/internal/internal.go +++ b/applyconfigurations/internal/internal.go @@ -12800,6 +12800,9 @@ var schemaYAML = typed.YAMLObject(`types: - name: io.k8s.api.resource.v1.AllocationResult map: fields: + - name: allocationTimestamp + type: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time - name: devices type: namedType: io.k8s.api.resource.v1.DeviceAllocationResult @@ -12843,6 +12846,21 @@ var schemaYAML = typed.YAMLObject(`types: map: elementType: namedType: io.k8s.api.resource.v1.DeviceAttribute + - name: bindingConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: bindingFailureConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: bindsToNode + type: + scalar: boolean - name: capacity type: map: @@ -13039,6 +13057,18 @@ var schemaYAML = typed.YAMLObject(`types: - name: adminAccess type: scalar: boolean + - name: bindingConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: bindingFailureConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic - name: device type: scalar: string @@ -13460,6 +13490,9 @@ var schemaYAML = typed.YAMLObject(`types: - name: io.k8s.api.resource.v1beta1.AllocationResult map: fields: + - name: allocationTimestamp + type: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time - name: devices type: namedType: io.k8s.api.resource.v1beta1.DeviceAllocationResult @@ -13478,6 +13511,21 @@ var schemaYAML = typed.YAMLObject(`types: map: elementType: namedType: io.k8s.api.resource.v1beta1.DeviceAttribute + - name: bindingConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: bindingFailureConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: bindsToNode + type: + scalar: boolean - name: capacity type: map: @@ -13727,6 +13775,18 @@ var schemaYAML = typed.YAMLObject(`types: - name: adminAccess type: scalar: boolean + - name: bindingConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: bindingFailureConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic - name: device type: scalar: string @@ -14042,6 +14102,9 @@ var schemaYAML = typed.YAMLObject(`types: - name: io.k8s.api.resource.v1beta2.AllocationResult map: fields: + - name: allocationTimestamp + type: + namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time - name: devices type: namedType: io.k8s.api.resource.v1beta2.DeviceAllocationResult @@ -14085,6 +14148,21 @@ var schemaYAML = typed.YAMLObject(`types: map: elementType: namedType: io.k8s.api.resource.v1beta2.DeviceAttribute + - name: bindingConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: bindingFailureConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: bindsToNode + type: + scalar: boolean - name: capacity type: map: @@ -14281,6 +14359,18 @@ var schemaYAML = typed.YAMLObject(`types: - name: adminAccess type: scalar: boolean + - name: bindingConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic + - name: bindingFailureConditions + type: + list: + elementType: + scalar: string + elementRelationship: atomic - name: device type: scalar: string diff --git a/applyconfigurations/resource/v1/allocationresult.go b/applyconfigurations/resource/v1/allocationresult.go index 137ffb80..b536e49d 100644 --- a/applyconfigurations/resource/v1/allocationresult.go +++ b/applyconfigurations/resource/v1/allocationresult.go @@ -19,14 +19,16 @@ limitations under the License. package v1 import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" corev1 "k8s.io/client-go/applyconfigurations/core/v1" ) // AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use // with apply. type AllocationResultApplyConfiguration struct { - Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"` - NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"` + NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + AllocationTimestamp *metav1.Time `json:"allocationTimestamp,omitempty"` } // AllocationResultApplyConfiguration constructs a declarative configuration of the AllocationResult type for use with @@ -50,3 +52,11 @@ func (b *AllocationResultApplyConfiguration) WithNodeSelector(value *corev1.Node b.NodeSelector = value return b } + +// WithAllocationTimestamp sets the AllocationTimestamp 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 AllocationTimestamp field is set to the value of the last call. +func (b *AllocationResultApplyConfiguration) WithAllocationTimestamp(value metav1.Time) *AllocationResultApplyConfiguration { + b.AllocationTimestamp = &value + return b +} diff --git a/applyconfigurations/resource/v1/device.go b/applyconfigurations/resource/v1/device.go index 900fdd74..3c1cb647 100644 --- a/applyconfigurations/resource/v1/device.go +++ b/applyconfigurations/resource/v1/device.go @@ -26,14 +26,17 @@ import ( // DeviceApplyConfiguration represents a declarative configuration of the Device type for use // with apply. type DeviceApplyConfiguration struct { - Name *string `json:"name,omitempty"` - Attributes map[resourcev1.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"` - Capacity map[resourcev1.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"` - ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` - AllNodes *bool `json:"allNodes,omitempty"` - Taints []DeviceTaintApplyConfiguration `json:"taints,omitempty"` + Name *string `json:"name,omitempty"` + Attributes map[resourcev1.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"` + Capacity map[resourcev1.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"` + ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + AllNodes *bool `json:"allNodes,omitempty"` + Taints []DeviceTaintApplyConfiguration `json:"taints,omitempty"` + BindsToNode *bool `json:"bindsToNode,omitempty"` + BindingConditions []string `json:"bindingConditions,omitempty"` + BindingFailureConditions []string `json:"bindingFailureConditions,omitempty"` } // DeviceApplyConfiguration constructs a declarative configuration of the Device type for use with @@ -127,3 +130,31 @@ func (b *DeviceApplyConfiguration) WithTaints(values ...*DeviceTaintApplyConfigu } return b } + +// WithBindsToNode sets the BindsToNode 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 BindsToNode field is set to the value of the last call. +func (b *DeviceApplyConfiguration) WithBindsToNode(value bool) *DeviceApplyConfiguration { + b.BindsToNode = &value + return b +} + +// WithBindingConditions adds the given value to the BindingConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingConditions field. +func (b *DeviceApplyConfiguration) WithBindingConditions(values ...string) *DeviceApplyConfiguration { + for i := range values { + b.BindingConditions = append(b.BindingConditions, values[i]) + } + return b +} + +// WithBindingFailureConditions adds the given value to the BindingFailureConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingFailureConditions field. +func (b *DeviceApplyConfiguration) WithBindingFailureConditions(values ...string) *DeviceApplyConfiguration { + for i := range values { + b.BindingFailureConditions = append(b.BindingFailureConditions, values[i]) + } + return b +} diff --git a/applyconfigurations/resource/v1/devicerequestallocationresult.go b/applyconfigurations/resource/v1/devicerequestallocationresult.go index a3069c1a..5a839d15 100644 --- a/applyconfigurations/resource/v1/devicerequestallocationresult.go +++ b/applyconfigurations/resource/v1/devicerequestallocationresult.go @@ -21,12 +21,14 @@ package v1 // DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use // with apply. type DeviceRequestAllocationResultApplyConfiguration struct { - Request *string `json:"request,omitempty"` - Driver *string `json:"driver,omitempty"` - Pool *string `json:"pool,omitempty"` - Device *string `json:"device,omitempty"` - AdminAccess *bool `json:"adminAccess,omitempty"` - Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` + Request *string `json:"request,omitempty"` + Driver *string `json:"driver,omitempty"` + Pool *string `json:"pool,omitempty"` + Device *string `json:"device,omitempty"` + AdminAccess *bool `json:"adminAccess,omitempty"` + Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` + BindingConditions []string `json:"bindingConditions,omitempty"` + BindingFailureConditions []string `json:"bindingFailureConditions,omitempty"` } // DeviceRequestAllocationResultApplyConfiguration constructs a declarative configuration of the DeviceRequestAllocationResult type for use with @@ -87,3 +89,23 @@ func (b *DeviceRequestAllocationResultApplyConfiguration) WithTolerations(values } return b } + +// WithBindingConditions adds the given value to the BindingConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingConditions field. +func (b *DeviceRequestAllocationResultApplyConfiguration) WithBindingConditions(values ...string) *DeviceRequestAllocationResultApplyConfiguration { + for i := range values { + b.BindingConditions = append(b.BindingConditions, values[i]) + } + return b +} + +// WithBindingFailureConditions adds the given value to the BindingFailureConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingFailureConditions field. +func (b *DeviceRequestAllocationResultApplyConfiguration) WithBindingFailureConditions(values ...string) *DeviceRequestAllocationResultApplyConfiguration { + for i := range values { + b.BindingFailureConditions = append(b.BindingFailureConditions, values[i]) + } + return b +} diff --git a/applyconfigurations/resource/v1beta1/allocationresult.go b/applyconfigurations/resource/v1beta1/allocationresult.go index 549ef71a..f031f974 100644 --- a/applyconfigurations/resource/v1beta1/allocationresult.go +++ b/applyconfigurations/resource/v1beta1/allocationresult.go @@ -19,14 +19,16 @@ limitations under the License. package v1beta1 import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/client-go/applyconfigurations/core/v1" ) // AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use // with apply. type AllocationResultApplyConfiguration struct { - Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"` - NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"` + NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + AllocationTimestamp *metav1.Time `json:"allocationTimestamp,omitempty"` } // AllocationResultApplyConfiguration constructs a declarative configuration of the AllocationResult type for use with @@ -50,3 +52,11 @@ func (b *AllocationResultApplyConfiguration) WithNodeSelector(value *v1.NodeSele b.NodeSelector = value return b } + +// WithAllocationTimestamp sets the AllocationTimestamp 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 AllocationTimestamp field is set to the value of the last call. +func (b *AllocationResultApplyConfiguration) WithAllocationTimestamp(value metav1.Time) *AllocationResultApplyConfiguration { + b.AllocationTimestamp = &value + return b +} diff --git a/applyconfigurations/resource/v1beta1/basicdevice.go b/applyconfigurations/resource/v1beta1/basicdevice.go index 065d0bf4..af9e4649 100644 --- a/applyconfigurations/resource/v1beta1/basicdevice.go +++ b/applyconfigurations/resource/v1beta1/basicdevice.go @@ -26,13 +26,16 @@ import ( // BasicDeviceApplyConfiguration represents a declarative configuration of the BasicDevice type for use // with apply. type BasicDeviceApplyConfiguration struct { - Attributes map[resourcev1beta1.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"` - Capacity map[resourcev1beta1.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"` - ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` - AllNodes *bool `json:"allNodes,omitempty"` - Taints []DeviceTaintApplyConfiguration `json:"taints,omitempty"` + Attributes map[resourcev1beta1.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"` + Capacity map[resourcev1beta1.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"` + ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + AllNodes *bool `json:"allNodes,omitempty"` + Taints []DeviceTaintApplyConfiguration `json:"taints,omitempty"` + BindsToNode *bool `json:"bindsToNode,omitempty"` + BindingConditions []string `json:"bindingConditions,omitempty"` + BindingFailureConditions []string `json:"bindingFailureConditions,omitempty"` } // BasicDeviceApplyConfiguration constructs a declarative configuration of the BasicDevice type for use with @@ -118,3 +121,31 @@ func (b *BasicDeviceApplyConfiguration) WithTaints(values ...*DeviceTaintApplyCo } return b } + +// WithBindsToNode sets the BindsToNode 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 BindsToNode field is set to the value of the last call. +func (b *BasicDeviceApplyConfiguration) WithBindsToNode(value bool) *BasicDeviceApplyConfiguration { + b.BindsToNode = &value + return b +} + +// WithBindingConditions adds the given value to the BindingConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingConditions field. +func (b *BasicDeviceApplyConfiguration) WithBindingConditions(values ...string) *BasicDeviceApplyConfiguration { + for i := range values { + b.BindingConditions = append(b.BindingConditions, values[i]) + } + return b +} + +// WithBindingFailureConditions adds the given value to the BindingFailureConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingFailureConditions field. +func (b *BasicDeviceApplyConfiguration) WithBindingFailureConditions(values ...string) *BasicDeviceApplyConfiguration { + for i := range values { + b.BindingFailureConditions = append(b.BindingFailureConditions, values[i]) + } + return b +} diff --git a/applyconfigurations/resource/v1beta1/devicerequestallocationresult.go b/applyconfigurations/resource/v1beta1/devicerequestallocationresult.go index aa207351..2d97c3d3 100644 --- a/applyconfigurations/resource/v1beta1/devicerequestallocationresult.go +++ b/applyconfigurations/resource/v1beta1/devicerequestallocationresult.go @@ -21,12 +21,14 @@ package v1beta1 // DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use // with apply. type DeviceRequestAllocationResultApplyConfiguration struct { - Request *string `json:"request,omitempty"` - Driver *string `json:"driver,omitempty"` - Pool *string `json:"pool,omitempty"` - Device *string `json:"device,omitempty"` - AdminAccess *bool `json:"adminAccess,omitempty"` - Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` + Request *string `json:"request,omitempty"` + Driver *string `json:"driver,omitempty"` + Pool *string `json:"pool,omitempty"` + Device *string `json:"device,omitempty"` + AdminAccess *bool `json:"adminAccess,omitempty"` + Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` + BindingConditions []string `json:"bindingConditions,omitempty"` + BindingFailureConditions []string `json:"bindingFailureConditions,omitempty"` } // DeviceRequestAllocationResultApplyConfiguration constructs a declarative configuration of the DeviceRequestAllocationResult type for use with @@ -87,3 +89,23 @@ func (b *DeviceRequestAllocationResultApplyConfiguration) WithTolerations(values } return b } + +// WithBindingConditions adds the given value to the BindingConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingConditions field. +func (b *DeviceRequestAllocationResultApplyConfiguration) WithBindingConditions(values ...string) *DeviceRequestAllocationResultApplyConfiguration { + for i := range values { + b.BindingConditions = append(b.BindingConditions, values[i]) + } + return b +} + +// WithBindingFailureConditions adds the given value to the BindingFailureConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingFailureConditions field. +func (b *DeviceRequestAllocationResultApplyConfiguration) WithBindingFailureConditions(values ...string) *DeviceRequestAllocationResultApplyConfiguration { + for i := range values { + b.BindingFailureConditions = append(b.BindingFailureConditions, values[i]) + } + return b +} diff --git a/applyconfigurations/resource/v1beta2/allocationresult.go b/applyconfigurations/resource/v1beta2/allocationresult.go index a82b01c9..fb2a78ec 100644 --- a/applyconfigurations/resource/v1beta2/allocationresult.go +++ b/applyconfigurations/resource/v1beta2/allocationresult.go @@ -19,14 +19,16 @@ limitations under the License. package v1beta2 import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/client-go/applyconfigurations/core/v1" ) // AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use // with apply. type AllocationResultApplyConfiguration struct { - Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"` - NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"` + NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + AllocationTimestamp *metav1.Time `json:"allocationTimestamp,omitempty"` } // AllocationResultApplyConfiguration constructs a declarative configuration of the AllocationResult type for use with @@ -50,3 +52,11 @@ func (b *AllocationResultApplyConfiguration) WithNodeSelector(value *v1.NodeSele b.NodeSelector = value return b } + +// WithAllocationTimestamp sets the AllocationTimestamp 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 AllocationTimestamp field is set to the value of the last call. +func (b *AllocationResultApplyConfiguration) WithAllocationTimestamp(value metav1.Time) *AllocationResultApplyConfiguration { + b.AllocationTimestamp = &value + return b +} diff --git a/applyconfigurations/resource/v1beta2/device.go b/applyconfigurations/resource/v1beta2/device.go index a05eb513..05d2cac4 100644 --- a/applyconfigurations/resource/v1beta2/device.go +++ b/applyconfigurations/resource/v1beta2/device.go @@ -26,14 +26,17 @@ import ( // DeviceApplyConfiguration represents a declarative configuration of the Device type for use // with apply. type DeviceApplyConfiguration struct { - Name *string `json:"name,omitempty"` - Attributes map[resourcev1beta2.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"` - Capacity map[resourcev1beta2.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"` - ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` - AllNodes *bool `json:"allNodes,omitempty"` - Taints []DeviceTaintApplyConfiguration `json:"taints,omitempty"` + Name *string `json:"name,omitempty"` + Attributes map[resourcev1beta2.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"` + Capacity map[resourcev1beta2.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"` + ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"` + NodeName *string `json:"nodeName,omitempty"` + NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"` + AllNodes *bool `json:"allNodes,omitempty"` + Taints []DeviceTaintApplyConfiguration `json:"taints,omitempty"` + BindsToNode *bool `json:"bindsToNode,omitempty"` + BindingConditions []string `json:"bindingConditions,omitempty"` + BindingFailureConditions []string `json:"bindingFailureConditions,omitempty"` } // DeviceApplyConfiguration constructs a declarative configuration of the Device type for use with @@ -127,3 +130,31 @@ func (b *DeviceApplyConfiguration) WithTaints(values ...*DeviceTaintApplyConfigu } return b } + +// WithBindsToNode sets the BindsToNode 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 BindsToNode field is set to the value of the last call. +func (b *DeviceApplyConfiguration) WithBindsToNode(value bool) *DeviceApplyConfiguration { + b.BindsToNode = &value + return b +} + +// WithBindingConditions adds the given value to the BindingConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingConditions field. +func (b *DeviceApplyConfiguration) WithBindingConditions(values ...string) *DeviceApplyConfiguration { + for i := range values { + b.BindingConditions = append(b.BindingConditions, values[i]) + } + return b +} + +// WithBindingFailureConditions adds the given value to the BindingFailureConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingFailureConditions field. +func (b *DeviceApplyConfiguration) WithBindingFailureConditions(values ...string) *DeviceApplyConfiguration { + for i := range values { + b.BindingFailureConditions = append(b.BindingFailureConditions, values[i]) + } + return b +} diff --git a/applyconfigurations/resource/v1beta2/devicerequestallocationresult.go b/applyconfigurations/resource/v1beta2/devicerequestallocationresult.go index ab826812..d4299bd3 100644 --- a/applyconfigurations/resource/v1beta2/devicerequestallocationresult.go +++ b/applyconfigurations/resource/v1beta2/devicerequestallocationresult.go @@ -21,12 +21,14 @@ package v1beta2 // DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use // with apply. type DeviceRequestAllocationResultApplyConfiguration struct { - Request *string `json:"request,omitempty"` - Driver *string `json:"driver,omitempty"` - Pool *string `json:"pool,omitempty"` - Device *string `json:"device,omitempty"` - AdminAccess *bool `json:"adminAccess,omitempty"` - Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` + Request *string `json:"request,omitempty"` + Driver *string `json:"driver,omitempty"` + Pool *string `json:"pool,omitempty"` + Device *string `json:"device,omitempty"` + AdminAccess *bool `json:"adminAccess,omitempty"` + Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,omitempty"` + BindingConditions []string `json:"bindingConditions,omitempty"` + BindingFailureConditions []string `json:"bindingFailureConditions,omitempty"` } // DeviceRequestAllocationResultApplyConfiguration constructs a declarative configuration of the DeviceRequestAllocationResult type for use with @@ -87,3 +89,23 @@ func (b *DeviceRequestAllocationResultApplyConfiguration) WithTolerations(values } return b } + +// WithBindingConditions adds the given value to the BindingConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingConditions field. +func (b *DeviceRequestAllocationResultApplyConfiguration) WithBindingConditions(values ...string) *DeviceRequestAllocationResultApplyConfiguration { + for i := range values { + b.BindingConditions = append(b.BindingConditions, values[i]) + } + return b +} + +// WithBindingFailureConditions adds the given value to the BindingFailureConditions field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the BindingFailureConditions field. +func (b *DeviceRequestAllocationResultApplyConfiguration) WithBindingFailureConditions(values ...string) *DeviceRequestAllocationResultApplyConfiguration { + for i := range values { + b.BindingFailureConditions = append(b.BindingFailureConditions, values[i]) + } + return b +}