Documentation ¶
Index ¶
- type DeviceAllocationApplyConfiguration
- func (b *DeviceAllocationApplyConfiguration) WithClaim(value v1.TypedLocalObjectReference) *DeviceAllocationApplyConfiguration
- func (b *DeviceAllocationApplyConfiguration) WithDevice(value *GPUDeviceApplyConfiguration) *DeviceAllocationApplyConfiguration
- func (b *DeviceAllocationApplyConfiguration) WithState(value gpuv1alpha1.DeviceAllocationState) *DeviceAllocationApplyConfiguration
- type DeviceSelectorApplyConfiguration
- type GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithAPIVersion(value string) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithAnnotations(entries map[string]string) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithCreationTimestamp(value metav1.Time) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithFinalizers(values ...string) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithGenerateName(value string) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithGeneration(value int64) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithKind(value string) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithLabels(entries map[string]string) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithName(value string) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithNamespace(value string) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithResourceVersion(value string) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithSpec(value *GPUClassParametersSpecApplyConfiguration) *GPUClassParametersApplyConfiguration
- func (b *GPUClassParametersApplyConfiguration) WithUID(value types.UID) *GPUClassParametersApplyConfiguration
- type GPUClassParametersSpecApplyConfiguration
- type GPUDeviceApplyConfiguration
- type GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithAPIVersion(value string) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithAnnotations(entries map[string]string) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithCreationTimestamp(value metav1.Time) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithFinalizers(values ...string) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithGenerateName(value string) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithGeneration(value int64) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithKind(value string) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithLabels(entries map[string]string) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithName(value string) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithNamespace(value string) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithResourceVersion(value string) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithSpec(value *GPURequirementsSpecApplyConfiguration) *GPURequirementsApplyConfiguration
- func (b *GPURequirementsApplyConfiguration) WithUID(value types.UID) *GPURequirementsApplyConfiguration
- type GPURequirementsSpecApplyConfiguration
- type NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithAPIVersion(value string) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithAllocatableGPUs(values ...**v1alpha1.GPUDevice) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithAllocations(entries map[string][]*v1alpha1.DeviceAllocation) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithAnnotations(entries map[string]string) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithFinalizers(values ...string) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithGenerateName(value string) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithGeneration(value int64) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithKind(value string) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithLabels(entries map[string]string) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithName(value string) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithNamespace(value string) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithNodeSuitability(entries map[string]v1alpha1.NodeSuitability) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithResourceVersion(value string) *NodeGPUSlicesApplyConfiguration
- func (b *NodeGPUSlicesApplyConfiguration) WithUID(value types.UID) *NodeGPUSlicesApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceAllocationApplyConfiguration ¶
type DeviceAllocationApplyConfiguration struct { Claim *v1.TypedLocalObjectReference `json:"claim,omitempty"` Device *GPUDeviceApplyConfiguration `json:"devices,omitempty"` State *gpuv1alpha1.DeviceAllocationState `json:"state,omitempty"` }
DeviceAllocationApplyConfiguration represents an declarative configuration of the DeviceAllocation type for use with apply.
func DeviceAllocation ¶
func DeviceAllocation() *DeviceAllocationApplyConfiguration
DeviceAllocationApplyConfiguration constructs an declarative configuration of the DeviceAllocation type for use with apply.
func (*DeviceAllocationApplyConfiguration) WithClaim ¶
func (b *DeviceAllocationApplyConfiguration) WithClaim(value v1.TypedLocalObjectReference) *DeviceAllocationApplyConfiguration
WithClaim sets the Claim 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 Claim field is set to the value of the last call.
func (*DeviceAllocationApplyConfiguration) WithDevice ¶
func (b *DeviceAllocationApplyConfiguration) WithDevice(value *GPUDeviceApplyConfiguration) *DeviceAllocationApplyConfiguration
WithDevice sets the Device 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 Device field is set to the value of the last call.
func (*DeviceAllocationApplyConfiguration) WithState ¶
func (b *DeviceAllocationApplyConfiguration) WithState(value gpuv1alpha1.DeviceAllocationState) *DeviceAllocationApplyConfiguration
WithState sets the State 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 State field is set to the value of the last call.
type DeviceSelectorApplyConfiguration ¶
type DeviceSelectorApplyConfiguration struct { Name *string `json:"name,omitempty"` Vendor *string `json:"vendor,omitempty"` }
DeviceSelectorApplyConfiguration represents an declarative configuration of the DeviceSelector type for use with apply.
func DeviceSelector ¶
func DeviceSelector() *DeviceSelectorApplyConfiguration
DeviceSelectorApplyConfiguration constructs an declarative configuration of the DeviceSelector type for use with apply.
func (*DeviceSelectorApplyConfiguration) WithName ¶
func (b *DeviceSelectorApplyConfiguration) WithName(value string) *DeviceSelectorApplyConfiguration
WithName sets the Name 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 Name field is set to the value of the last call.
func (*DeviceSelectorApplyConfiguration) WithVendor ¶
func (b *DeviceSelectorApplyConfiguration) WithVendor(value string) *DeviceSelectorApplyConfiguration
WithVendor sets the Vendor 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 Vendor field is set to the value of the last call.
type GPUClassParametersApplyConfiguration ¶
type GPUClassParametersApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *GPUClassParametersSpecApplyConfiguration `json:"spec,omitempty"` }
GPUClassParametersApplyConfiguration represents an declarative configuration of the GPUClassParameters type for use with apply.
func GPUClassParameters ¶
func GPUClassParameters(name string) *GPUClassParametersApplyConfiguration
GPUClassParameters constructs an declarative configuration of the GPUClassParameters type for use with apply.
func (*GPUClassParametersApplyConfiguration) WithAPIVersion ¶
func (b *GPUClassParametersApplyConfiguration) WithAPIVersion(value string) *GPUClassParametersApplyConfiguration
WithAPIVersion sets the APIVersion 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 APIVersion field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithAnnotations ¶
func (b *GPUClassParametersApplyConfiguration) WithAnnotations(entries map[string]string) *GPUClassParametersApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*GPUClassParametersApplyConfiguration) WithCreationTimestamp ¶
func (b *GPUClassParametersApplyConfiguration) WithCreationTimestamp(value metav1.Time) *GPUClassParametersApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp 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 CreationTimestamp field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *GPUClassParametersApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *GPUClassParametersApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds 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 DeletionGracePeriodSeconds field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithDeletionTimestamp ¶
func (b *GPUClassParametersApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *GPUClassParametersApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp 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 DeletionTimestamp field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithFinalizers ¶
func (b *GPUClassParametersApplyConfiguration) WithFinalizers(values ...string) *GPUClassParametersApplyConfiguration
WithFinalizers adds the given value to the Finalizers 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 Finalizers field.
func (*GPUClassParametersApplyConfiguration) WithGenerateName ¶
func (b *GPUClassParametersApplyConfiguration) WithGenerateName(value string) *GPUClassParametersApplyConfiguration
WithGenerateName sets the GenerateName 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 GenerateName field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithGeneration ¶
func (b *GPUClassParametersApplyConfiguration) WithGeneration(value int64) *GPUClassParametersApplyConfiguration
WithGeneration sets the Generation 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 Generation field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithKind ¶
func (b *GPUClassParametersApplyConfiguration) WithKind(value string) *GPUClassParametersApplyConfiguration
WithKind sets the Kind 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 Kind field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithLabels ¶
func (b *GPUClassParametersApplyConfiguration) WithLabels(entries map[string]string) *GPUClassParametersApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*GPUClassParametersApplyConfiguration) WithName ¶
func (b *GPUClassParametersApplyConfiguration) WithName(value string) *GPUClassParametersApplyConfiguration
WithName sets the Name 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 Name field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithNamespace ¶
func (b *GPUClassParametersApplyConfiguration) WithNamespace(value string) *GPUClassParametersApplyConfiguration
WithNamespace sets the Namespace 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 Namespace field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithOwnerReferences ¶
func (b *GPUClassParametersApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *GPUClassParametersApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences 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 OwnerReferences field.
func (*GPUClassParametersApplyConfiguration) WithResourceVersion ¶
func (b *GPUClassParametersApplyConfiguration) WithResourceVersion(value string) *GPUClassParametersApplyConfiguration
WithResourceVersion sets the ResourceVersion 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 ResourceVersion field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithSpec ¶
func (b *GPUClassParametersApplyConfiguration) WithSpec(value *GPUClassParametersSpecApplyConfiguration) *GPUClassParametersApplyConfiguration
WithSpec sets the Spec 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 Spec field is set to the value of the last call.
func (*GPUClassParametersApplyConfiguration) WithUID ¶
func (b *GPUClassParametersApplyConfiguration) WithUID(value types.UID) *GPUClassParametersApplyConfiguration
WithUID sets the UID 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 UID field is set to the value of the last call.
type GPUClassParametersSpecApplyConfiguration ¶
type GPUClassParametersSpecApplyConfiguration struct {
DeviceSelector []DeviceSelectorApplyConfiguration `json:"deviceSelector,omitempty"`
}
GPUClassParametersSpecApplyConfiguration represents an declarative configuration of the GPUClassParametersSpec type for use with apply.
func GPUClassParametersSpec ¶
func GPUClassParametersSpec() *GPUClassParametersSpecApplyConfiguration
GPUClassParametersSpecApplyConfiguration constructs an declarative configuration of the GPUClassParametersSpec type for use with apply.
func (*GPUClassParametersSpecApplyConfiguration) WithDeviceSelector ¶
func (b *GPUClassParametersSpecApplyConfiguration) WithDeviceSelector(values ...*DeviceSelectorApplyConfiguration) *GPUClassParametersSpecApplyConfiguration
WithDeviceSelector adds the given value to the DeviceSelector 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 DeviceSelector field.
type GPUDeviceApplyConfiguration ¶
type GPUDeviceApplyConfiguration struct { UUID *string `json:"uuid,omitempty"` ProductName *string `json:"productName,omitempty"` Vendor *string `json:"vendor,omitempty"` }
GPUDeviceApplyConfiguration represents an declarative configuration of the GPUDevice type for use with apply.
func GPUDevice ¶
func GPUDevice() *GPUDeviceApplyConfiguration
GPUDeviceApplyConfiguration constructs an declarative configuration of the GPUDevice type for use with apply.
func (*GPUDeviceApplyConfiguration) WithProductName ¶
func (b *GPUDeviceApplyConfiguration) WithProductName(value string) *GPUDeviceApplyConfiguration
WithProductName sets the ProductName 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 ProductName field is set to the value of the last call.
func (*GPUDeviceApplyConfiguration) WithUUID ¶
func (b *GPUDeviceApplyConfiguration) WithUUID(value string) *GPUDeviceApplyConfiguration
WithUUID sets the UUID 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 UUID field is set to the value of the last call.
func (*GPUDeviceApplyConfiguration) WithVendor ¶
func (b *GPUDeviceApplyConfiguration) WithVendor(value string) *GPUDeviceApplyConfiguration
WithVendor sets the Vendor 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 Vendor field is set to the value of the last call.
type GPURequirementsApplyConfiguration ¶
type GPURequirementsApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *GPURequirementsSpecApplyConfiguration `json:"spec,omitempty"` }
GPURequirementsApplyConfiguration represents an declarative configuration of the GPURequirements type for use with apply.
func GPURequirements ¶
func GPURequirements(name, namespace string) *GPURequirementsApplyConfiguration
GPURequirements constructs an declarative configuration of the GPURequirements type for use with apply.
func (*GPURequirementsApplyConfiguration) WithAPIVersion ¶
func (b *GPURequirementsApplyConfiguration) WithAPIVersion(value string) *GPURequirementsApplyConfiguration
WithAPIVersion sets the APIVersion 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 APIVersion field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithAnnotations ¶
func (b *GPURequirementsApplyConfiguration) WithAnnotations(entries map[string]string) *GPURequirementsApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*GPURequirementsApplyConfiguration) WithCreationTimestamp ¶
func (b *GPURequirementsApplyConfiguration) WithCreationTimestamp(value metav1.Time) *GPURequirementsApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp 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 CreationTimestamp field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *GPURequirementsApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *GPURequirementsApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds 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 DeletionGracePeriodSeconds field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithDeletionTimestamp ¶
func (b *GPURequirementsApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *GPURequirementsApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp 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 DeletionTimestamp field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithFinalizers ¶
func (b *GPURequirementsApplyConfiguration) WithFinalizers(values ...string) *GPURequirementsApplyConfiguration
WithFinalizers adds the given value to the Finalizers 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 Finalizers field.
func (*GPURequirementsApplyConfiguration) WithGenerateName ¶
func (b *GPURequirementsApplyConfiguration) WithGenerateName(value string) *GPURequirementsApplyConfiguration
WithGenerateName sets the GenerateName 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 GenerateName field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithGeneration ¶
func (b *GPURequirementsApplyConfiguration) WithGeneration(value int64) *GPURequirementsApplyConfiguration
WithGeneration sets the Generation 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 Generation field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithKind ¶
func (b *GPURequirementsApplyConfiguration) WithKind(value string) *GPURequirementsApplyConfiguration
WithKind sets the Kind 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 Kind field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithLabels ¶
func (b *GPURequirementsApplyConfiguration) WithLabels(entries map[string]string) *GPURequirementsApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*GPURequirementsApplyConfiguration) WithName ¶
func (b *GPURequirementsApplyConfiguration) WithName(value string) *GPURequirementsApplyConfiguration
WithName sets the Name 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 Name field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithNamespace ¶
func (b *GPURequirementsApplyConfiguration) WithNamespace(value string) *GPURequirementsApplyConfiguration
WithNamespace sets the Namespace 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 Namespace field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithOwnerReferences ¶
func (b *GPURequirementsApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *GPURequirementsApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences 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 OwnerReferences field.
func (*GPURequirementsApplyConfiguration) WithResourceVersion ¶
func (b *GPURequirementsApplyConfiguration) WithResourceVersion(value string) *GPURequirementsApplyConfiguration
WithResourceVersion sets the ResourceVersion 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 ResourceVersion field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithSpec ¶
func (b *GPURequirementsApplyConfiguration) WithSpec(value *GPURequirementsSpecApplyConfiguration) *GPURequirementsApplyConfiguration
WithSpec sets the Spec 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 Spec field is set to the value of the last call.
func (*GPURequirementsApplyConfiguration) WithUID ¶
func (b *GPURequirementsApplyConfiguration) WithUID(value types.UID) *GPURequirementsApplyConfiguration
WithUID sets the UID 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 UID field is set to the value of the last call.
type GPURequirementsSpecApplyConfiguration ¶
type GPURequirementsSpecApplyConfiguration struct {
Count *int `json:"count,omitempty"`
}
GPURequirementsSpecApplyConfiguration represents an declarative configuration of the GPURequirementsSpec type for use with apply.
func GPURequirementsSpec ¶
func GPURequirementsSpec() *GPURequirementsSpecApplyConfiguration
GPURequirementsSpecApplyConfiguration constructs an declarative configuration of the GPURequirementsSpec type for use with apply.
func (*GPURequirementsSpecApplyConfiguration) WithCount ¶
func (b *GPURequirementsSpecApplyConfiguration) WithCount(value int) *GPURequirementsSpecApplyConfiguration
WithCount sets the Count 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 Count field is set to the value of the last call.
type NodeGPUSlicesApplyConfiguration ¶
type NodeGPUSlicesApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` AllocatableGPUs []*v1alpha1.GPUDevice `json:"allocatedGPUs,omitempty"` Allocations map[string][]*v1alpha1.DeviceAllocation `json:"allocations,omitempty"` NodeSuitability map[string]v1alpha1.NodeSuitability `json:"nodeSuitability,omitempty"` }
NodeGPUSlicesApplyConfiguration represents an declarative configuration of the NodeGPUSlices type for use with apply.
func NodeGPUSlices ¶
func NodeGPUSlices(name, namespace string) *NodeGPUSlicesApplyConfiguration
NodeGPUSlices constructs an declarative configuration of the NodeGPUSlices type for use with apply.
func (*NodeGPUSlicesApplyConfiguration) WithAPIVersion ¶
func (b *NodeGPUSlicesApplyConfiguration) WithAPIVersion(value string) *NodeGPUSlicesApplyConfiguration
WithAPIVersion sets the APIVersion 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 APIVersion field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithAllocatableGPUs ¶
func (b *NodeGPUSlicesApplyConfiguration) WithAllocatableGPUs(values ...**v1alpha1.GPUDevice) *NodeGPUSlicesApplyConfiguration
WithAllocatableGPUs adds the given value to the AllocatableGPUs 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 AllocatableGPUs field.
func (*NodeGPUSlicesApplyConfiguration) WithAllocations ¶
func (b *NodeGPUSlicesApplyConfiguration) WithAllocations(entries map[string][]*v1alpha1.DeviceAllocation) *NodeGPUSlicesApplyConfiguration
WithAllocations puts the entries into the Allocations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Allocations field, overwriting an existing map entries in Allocations field with the same key.
func (*NodeGPUSlicesApplyConfiguration) WithAnnotations ¶
func (b *NodeGPUSlicesApplyConfiguration) WithAnnotations(entries map[string]string) *NodeGPUSlicesApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*NodeGPUSlicesApplyConfiguration) WithCreationTimestamp ¶
func (b *NodeGPUSlicesApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NodeGPUSlicesApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp 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 CreationTimestamp field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *NodeGPUSlicesApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NodeGPUSlicesApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds 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 DeletionGracePeriodSeconds field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithDeletionTimestamp ¶
func (b *NodeGPUSlicesApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NodeGPUSlicesApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp 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 DeletionTimestamp field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithFinalizers ¶
func (b *NodeGPUSlicesApplyConfiguration) WithFinalizers(values ...string) *NodeGPUSlicesApplyConfiguration
WithFinalizers adds the given value to the Finalizers 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 Finalizers field.
func (*NodeGPUSlicesApplyConfiguration) WithGenerateName ¶
func (b *NodeGPUSlicesApplyConfiguration) WithGenerateName(value string) *NodeGPUSlicesApplyConfiguration
WithGenerateName sets the GenerateName 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 GenerateName field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithGeneration ¶
func (b *NodeGPUSlicesApplyConfiguration) WithGeneration(value int64) *NodeGPUSlicesApplyConfiguration
WithGeneration sets the Generation 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 Generation field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithKind ¶
func (b *NodeGPUSlicesApplyConfiguration) WithKind(value string) *NodeGPUSlicesApplyConfiguration
WithKind sets the Kind 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 Kind field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithLabels ¶
func (b *NodeGPUSlicesApplyConfiguration) WithLabels(entries map[string]string) *NodeGPUSlicesApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*NodeGPUSlicesApplyConfiguration) WithName ¶
func (b *NodeGPUSlicesApplyConfiguration) WithName(value string) *NodeGPUSlicesApplyConfiguration
WithName sets the Name 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 Name field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithNamespace ¶
func (b *NodeGPUSlicesApplyConfiguration) WithNamespace(value string) *NodeGPUSlicesApplyConfiguration
WithNamespace sets the Namespace 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 Namespace field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithNodeSuitability ¶
func (b *NodeGPUSlicesApplyConfiguration) WithNodeSuitability(entries map[string]v1alpha1.NodeSuitability) *NodeGPUSlicesApplyConfiguration
WithNodeSuitability puts the entries into the NodeSuitability field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the NodeSuitability field, overwriting an existing map entries in NodeSuitability field with the same key.
func (*NodeGPUSlicesApplyConfiguration) WithOwnerReferences ¶
func (b *NodeGPUSlicesApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NodeGPUSlicesApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences 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 OwnerReferences field.
func (*NodeGPUSlicesApplyConfiguration) WithResourceVersion ¶
func (b *NodeGPUSlicesApplyConfiguration) WithResourceVersion(value string) *NodeGPUSlicesApplyConfiguration
WithResourceVersion sets the ResourceVersion 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 ResourceVersion field is set to the value of the last call.
func (*NodeGPUSlicesApplyConfiguration) WithUID ¶
func (b *NodeGPUSlicesApplyConfiguration) WithUID(value types.UID) *NodeGPUSlicesApplyConfiguration
WithUID sets the UID 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 UID field is set to the value of the last call.