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
|
||||
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
|
||||
|
@ -19,6 +19,7 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||
)
|
||||
|
||||
@ -27,6 +28,7 @@ import (
|
||||
type AllocationResultApplyConfiguration struct {
|
||||
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
|
||||
}
|
||||
|
@ -34,6 +34,9 @@ type DeviceApplyConfiguration struct {
|
||||
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
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ type DeviceRequestAllocationResultApplyConfiguration struct {
|
||||
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
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ limitations under the License.
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
v1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||
)
|
||||
|
||||
@ -27,6 +28,7 @@ import (
|
||||
type AllocationResultApplyConfiguration struct {
|
||||
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
|
||||
}
|
||||
|
@ -33,6 +33,9 @@ type BasicDeviceApplyConfiguration struct {
|
||||
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
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ type DeviceRequestAllocationResultApplyConfiguration struct {
|
||||
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
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ limitations under the License.
|
||||
package v1beta2
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
v1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||
)
|
||||
|
||||
@ -27,6 +28,7 @@ import (
|
||||
type AllocationResultApplyConfiguration struct {
|
||||
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
|
||||
}
|
||||
|
@ -34,6 +34,9 @@ type DeviceApplyConfiguration struct {
|
||||
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
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ type DeviceRequestAllocationResultApplyConfiguration struct {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user