KEP-5007 DRA Device Binding Conditions: Run make update

Kubernetes-commit: ac81b829e4a1a26e11b5eb058b754b3fc621b0aa
This commit is contained in:
Kobayashi,Daisuke 2025-07-29 11:34:03 +00:00 committed by Kubernetes Publisher
parent f78361a647
commit 9999d6448a
10 changed files with 326 additions and 47 deletions

View File

@ -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

View File

@ -19,6 +19,7 @@ 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"
) )
@ -27,6 +28,7 @@ import (
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
}

View File

@ -34,6 +34,9 @@ type DeviceApplyConfiguration struct {
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
}

View File

@ -27,6 +27,8 @@ type DeviceRequestAllocationResultApplyConfiguration struct {
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
}

View File

@ -19,6 +19,7 @@ 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"
) )
@ -27,6 +28,7 @@ import (
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
}

View File

@ -33,6 +33,9 @@ type BasicDeviceApplyConfiguration struct {
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
}

View File

@ -27,6 +27,8 @@ type DeviceRequestAllocationResultApplyConfiguration struct {
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
}

View File

@ -19,6 +19,7 @@ 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"
) )
@ -27,6 +28,7 @@ import (
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
}

View File

@ -34,6 +34,9 @@ type DeviceApplyConfiguration struct {
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
}

View File

@ -27,6 +27,8 @@ type DeviceRequestAllocationResultApplyConfiguration struct {
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
}