v1alpha1

package
v0.0.0-...-d44f63b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL