mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-14 21:43:27 +00:00
KEP-5007 DRA Device Binding Conditions: Run make update
Kubernetes-commit: ac81b829e4a1a26e11b5eb058b754b3fc621b0aa
This commit is contained in:
parent
f78361a647
commit
9999d6448a
@ -12800,6 +12800,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: io.k8s.api.resource.v1.AllocationResult
|
- name: io.k8s.api.resource.v1.AllocationResult
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
- name: allocationTimestamp
|
||||||
|
type:
|
||||||
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
||||||
- name: devices
|
- name: devices
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.resource.v1.DeviceAllocationResult
|
namedType: io.k8s.api.resource.v1.DeviceAllocationResult
|
||||||
@ -12843,6 +12846,21 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
map:
|
map:
|
||||||
elementType:
|
elementType:
|
||||||
namedType: io.k8s.api.resource.v1.DeviceAttribute
|
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
|
- name: capacity
|
||||||
type:
|
type:
|
||||||
map:
|
map:
|
||||||
@ -13039,6 +13057,18 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: adminAccess
|
- name: adminAccess
|
||||||
type:
|
type:
|
||||||
scalar: boolean
|
scalar: boolean
|
||||||
|
- name: bindingConditions
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
scalar: string
|
||||||
|
elementRelationship: atomic
|
||||||
|
- name: bindingFailureConditions
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
scalar: string
|
||||||
|
elementRelationship: atomic
|
||||||
- name: device
|
- name: device
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
@ -13460,6 +13490,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: io.k8s.api.resource.v1beta1.AllocationResult
|
- name: io.k8s.api.resource.v1beta1.AllocationResult
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
- name: allocationTimestamp
|
||||||
|
type:
|
||||||
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
||||||
- name: devices
|
- name: devices
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.resource.v1beta1.DeviceAllocationResult
|
namedType: io.k8s.api.resource.v1beta1.DeviceAllocationResult
|
||||||
@ -13478,6 +13511,21 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
map:
|
map:
|
||||||
elementType:
|
elementType:
|
||||||
namedType: io.k8s.api.resource.v1beta1.DeviceAttribute
|
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
|
- name: capacity
|
||||||
type:
|
type:
|
||||||
map:
|
map:
|
||||||
@ -13727,6 +13775,18 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: adminAccess
|
- name: adminAccess
|
||||||
type:
|
type:
|
||||||
scalar: boolean
|
scalar: boolean
|
||||||
|
- name: bindingConditions
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
scalar: string
|
||||||
|
elementRelationship: atomic
|
||||||
|
- name: bindingFailureConditions
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
scalar: string
|
||||||
|
elementRelationship: atomic
|
||||||
- name: device
|
- name: device
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
@ -14042,6 +14102,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: io.k8s.api.resource.v1beta2.AllocationResult
|
- name: io.k8s.api.resource.v1beta2.AllocationResult
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
- name: allocationTimestamp
|
||||||
|
type:
|
||||||
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
||||||
- name: devices
|
- name: devices
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.resource.v1beta2.DeviceAllocationResult
|
namedType: io.k8s.api.resource.v1beta2.DeviceAllocationResult
|
||||||
@ -14085,6 +14148,21 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
map:
|
map:
|
||||||
elementType:
|
elementType:
|
||||||
namedType: io.k8s.api.resource.v1beta2.DeviceAttribute
|
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
|
- name: capacity
|
||||||
type:
|
type:
|
||||||
map:
|
map:
|
||||||
@ -14281,6 +14359,18 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: adminAccess
|
- name: adminAccess
|
||||||
type:
|
type:
|
||||||
scalar: boolean
|
scalar: boolean
|
||||||
|
- name: bindingConditions
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
scalar: string
|
||||||
|
elementRelationship: atomic
|
||||||
|
- name: bindingFailureConditions
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
scalar: string
|
||||||
|
elementRelationship: atomic
|
||||||
- name: device
|
- name: device
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
|
@ -19,14 +19,16 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use
|
// AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type AllocationResultApplyConfiguration struct {
|
type AllocationResultApplyConfiguration struct {
|
||||||
Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"`
|
Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"`
|
||||||
NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,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
|
// 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
|
b.NodeSelector = value
|
||||||
return b
|
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
|
||||||
|
}
|
||||||
|
@ -26,14 +26,17 @@ import (
|
|||||||
// DeviceApplyConfiguration represents a declarative configuration of the Device type for use
|
// DeviceApplyConfiguration represents a declarative configuration of the Device type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeviceApplyConfiguration struct {
|
type DeviceApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Attributes map[resourcev1.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"`
|
Attributes map[resourcev1.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"`
|
||||||
Capacity map[resourcev1.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"`
|
Capacity map[resourcev1.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"`
|
||||||
ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"`
|
ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"`
|
||||||
NodeName *string `json:"nodeName,omitempty"`
|
NodeName *string `json:"nodeName,omitempty"`
|
||||||
NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
|
NodeSelector *corev1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
|
||||||
AllNodes *bool `json:"allNodes,omitempty"`
|
AllNodes *bool `json:"allNodes,omitempty"`
|
||||||
Taints []DeviceTaintApplyConfiguration `json:"taints,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
|
// DeviceApplyConfiguration constructs a declarative configuration of the Device type for use with
|
||||||
@ -127,3 +130,31 @@ func (b *DeviceApplyConfiguration) WithTaints(values ...*DeviceTaintApplyConfigu
|
|||||||
}
|
}
|
||||||
return b
|
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
|
||||||
|
}
|
||||||
|
@ -21,12 +21,14 @@ package v1
|
|||||||
// DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use
|
// DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeviceRequestAllocationResultApplyConfiguration struct {
|
type DeviceRequestAllocationResultApplyConfiguration struct {
|
||||||
Request *string `json:"request,omitempty"`
|
Request *string `json:"request,omitempty"`
|
||||||
Driver *string `json:"driver,omitempty"`
|
Driver *string `json:"driver,omitempty"`
|
||||||
Pool *string `json:"pool,omitempty"`
|
Pool *string `json:"pool,omitempty"`
|
||||||
Device *string `json:"device,omitempty"`
|
Device *string `json:"device,omitempty"`
|
||||||
AdminAccess *bool `json:"adminAccess,omitempty"`
|
AdminAccess *bool `json:"adminAccess,omitempty"`
|
||||||
Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,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
|
// DeviceRequestAllocationResultApplyConfiguration constructs a declarative configuration of the DeviceRequestAllocationResult type for use with
|
||||||
@ -87,3 +89,23 @@ func (b *DeviceRequestAllocationResultApplyConfiguration) WithTolerations(values
|
|||||||
}
|
}
|
||||||
return b
|
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
|
||||||
|
}
|
||||||
|
@ -19,14 +19,16 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/core/v1"
|
v1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use
|
// AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type AllocationResultApplyConfiguration struct {
|
type AllocationResultApplyConfiguration struct {
|
||||||
Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"`
|
Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"`
|
||||||
NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,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
|
// 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
|
b.NodeSelector = value
|
||||||
return b
|
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
|
||||||
|
}
|
||||||
|
@ -26,13 +26,16 @@ import (
|
|||||||
// BasicDeviceApplyConfiguration represents a declarative configuration of the BasicDevice type for use
|
// BasicDeviceApplyConfiguration represents a declarative configuration of the BasicDevice type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type BasicDeviceApplyConfiguration struct {
|
type BasicDeviceApplyConfiguration struct {
|
||||||
Attributes map[resourcev1beta1.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"`
|
Attributes map[resourcev1beta1.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"`
|
||||||
Capacity map[resourcev1beta1.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"`
|
Capacity map[resourcev1beta1.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"`
|
||||||
ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"`
|
ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"`
|
||||||
NodeName *string `json:"nodeName,omitempty"`
|
NodeName *string `json:"nodeName,omitempty"`
|
||||||
NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
|
NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
|
||||||
AllNodes *bool `json:"allNodes,omitempty"`
|
AllNodes *bool `json:"allNodes,omitempty"`
|
||||||
Taints []DeviceTaintApplyConfiguration `json:"taints,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
|
// BasicDeviceApplyConfiguration constructs a declarative configuration of the BasicDevice type for use with
|
||||||
@ -118,3 +121,31 @@ func (b *BasicDeviceApplyConfiguration) WithTaints(values ...*DeviceTaintApplyCo
|
|||||||
}
|
}
|
||||||
return b
|
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
|
||||||
|
}
|
||||||
|
@ -21,12 +21,14 @@ package v1beta1
|
|||||||
// DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use
|
// DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeviceRequestAllocationResultApplyConfiguration struct {
|
type DeviceRequestAllocationResultApplyConfiguration struct {
|
||||||
Request *string `json:"request,omitempty"`
|
Request *string `json:"request,omitempty"`
|
||||||
Driver *string `json:"driver,omitempty"`
|
Driver *string `json:"driver,omitempty"`
|
||||||
Pool *string `json:"pool,omitempty"`
|
Pool *string `json:"pool,omitempty"`
|
||||||
Device *string `json:"device,omitempty"`
|
Device *string `json:"device,omitempty"`
|
||||||
AdminAccess *bool `json:"adminAccess,omitempty"`
|
AdminAccess *bool `json:"adminAccess,omitempty"`
|
||||||
Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,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
|
// DeviceRequestAllocationResultApplyConfiguration constructs a declarative configuration of the DeviceRequestAllocationResult type for use with
|
||||||
@ -87,3 +89,23 @@ func (b *DeviceRequestAllocationResultApplyConfiguration) WithTolerations(values
|
|||||||
}
|
}
|
||||||
return b
|
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
|
||||||
|
}
|
||||||
|
@ -19,14 +19,16 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/core/v1"
|
v1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use
|
// AllocationResultApplyConfiguration represents a declarative configuration of the AllocationResult type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type AllocationResultApplyConfiguration struct {
|
type AllocationResultApplyConfiguration struct {
|
||||||
Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"`
|
Devices *DeviceAllocationResultApplyConfiguration `json:"devices,omitempty"`
|
||||||
NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,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
|
// 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
|
b.NodeSelector = value
|
||||||
return b
|
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
|
||||||
|
}
|
||||||
|
@ -26,14 +26,17 @@ import (
|
|||||||
// DeviceApplyConfiguration represents a declarative configuration of the Device type for use
|
// DeviceApplyConfiguration represents a declarative configuration of the Device type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeviceApplyConfiguration struct {
|
type DeviceApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Attributes map[resourcev1beta2.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"`
|
Attributes map[resourcev1beta2.QualifiedName]DeviceAttributeApplyConfiguration `json:"attributes,omitempty"`
|
||||||
Capacity map[resourcev1beta2.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"`
|
Capacity map[resourcev1beta2.QualifiedName]DeviceCapacityApplyConfiguration `json:"capacity,omitempty"`
|
||||||
ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"`
|
ConsumesCounters []DeviceCounterConsumptionApplyConfiguration `json:"consumesCounters,omitempty"`
|
||||||
NodeName *string `json:"nodeName,omitempty"`
|
NodeName *string `json:"nodeName,omitempty"`
|
||||||
NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
|
NodeSelector *v1.NodeSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
|
||||||
AllNodes *bool `json:"allNodes,omitempty"`
|
AllNodes *bool `json:"allNodes,omitempty"`
|
||||||
Taints []DeviceTaintApplyConfiguration `json:"taints,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
|
// DeviceApplyConfiguration constructs a declarative configuration of the Device type for use with
|
||||||
@ -127,3 +130,31 @@ func (b *DeviceApplyConfiguration) WithTaints(values ...*DeviceTaintApplyConfigu
|
|||||||
}
|
}
|
||||||
return b
|
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
|
||||||
|
}
|
||||||
|
@ -21,12 +21,14 @@ package v1beta2
|
|||||||
// DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use
|
// DeviceRequestAllocationResultApplyConfiguration represents a declarative configuration of the DeviceRequestAllocationResult type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeviceRequestAllocationResultApplyConfiguration struct {
|
type DeviceRequestAllocationResultApplyConfiguration struct {
|
||||||
Request *string `json:"request,omitempty"`
|
Request *string `json:"request,omitempty"`
|
||||||
Driver *string `json:"driver,omitempty"`
|
Driver *string `json:"driver,omitempty"`
|
||||||
Pool *string `json:"pool,omitempty"`
|
Pool *string `json:"pool,omitempty"`
|
||||||
Device *string `json:"device,omitempty"`
|
Device *string `json:"device,omitempty"`
|
||||||
AdminAccess *bool `json:"adminAccess,omitempty"`
|
AdminAccess *bool `json:"adminAccess,omitempty"`
|
||||||
Tolerations []DeviceTolerationApplyConfiguration `json:"tolerations,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
|
// DeviceRequestAllocationResultApplyConfiguration constructs a declarative configuration of the DeviceRequestAllocationResult type for use with
|
||||||
@ -87,3 +89,23 @@ func (b *DeviceRequestAllocationResultApplyConfiguration) WithTolerations(values
|
|||||||
}
|
}
|
||||||
return b
|
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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user