v1alpha1

package
v0.0.0-...-c16a028 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "gpu.resource.nvidia.com"
	Version   = "v1alpha1"

	GpuClaimParametersKind       = "GpuClaimParameters"
	MigDeviceClaimParametersKind = "MigDeviceClaimParameters"
)

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   GroupName,
	Version: Version,
}

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type ComputeInstanceClaimParameters

type ComputeInstanceClaimParameters struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ComputeInstanceClaimParametersSpec `json:"spec,omitempty"`
}

ComputeInstanceClaimParameters holds the set of parameters provided when creating a resource claim for a Compute Instance.

func (*ComputeInstanceClaimParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComputeInstanceClaimParameters.

func (*ComputeInstanceClaimParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ComputeInstanceClaimParameters) DeepCopyObject

func (in *ComputeInstanceClaimParameters) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ComputeInstanceClaimParametersList

type ComputeInstanceClaimParametersList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ComputeInstanceClaimParameters `json:"items"`
}

ComputeInstanceClaimParametersList represents the "plural" of a ComputeInstanceClaimParameters CRD object.

func (*ComputeInstanceClaimParametersList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComputeInstanceClaimParametersList.

func (*ComputeInstanceClaimParametersList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ComputeInstanceClaimParametersList) DeepCopyObject

func (in *ComputeInstanceClaimParametersList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ComputeInstanceClaimParametersSpec

type ComputeInstanceClaimParametersSpec struct {
	Profile                      string `json:"profile,omitempty"`
	MigDeviceClaimParametersName string `json:"migDeviceClaimName,omitempty"`
}

ComputeInstanceClaimParametersSpec is the spec for the ComputeInstanceClaimParameters CRD.

func (*ComputeInstanceClaimParametersSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComputeInstanceClaimParametersSpec.

func (*ComputeInstanceClaimParametersSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DeviceClassParameters

type DeviceClassParameters struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec DeviceClassParametersSpec `json:"spec,omitempty"`
}

DeviceClassParameters holds the set of parameters provided when creating a resource class for this driver.

func (*DeviceClassParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassParameters.

func (*DeviceClassParameters) DeepCopyInto

func (in *DeviceClassParameters) DeepCopyInto(out *DeviceClassParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DeviceClassParameters) DeepCopyObject

func (in *DeviceClassParameters) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DeviceClassParametersList

type DeviceClassParametersList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []DeviceClassParameters `json:"items"`
}

DeviceClassParametersList represents the "plural" of a DeviceClassParameters CRD object.

func (*DeviceClassParametersList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassParametersList.

func (*DeviceClassParametersList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DeviceClassParametersList) DeepCopyObject

func (in *DeviceClassParametersList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DeviceClassParametersSpec

type DeviceClassParametersSpec struct {
	Shareable *bool `json:"sharable,omitempty"`
}

DeviceClassParametersSpec is the spec for the DeviceClassParametersSpec CRD.

func UpdateDeviceClassParametersSpecWithDefaults

func UpdateDeviceClassParametersSpecWithDefaults(oldspec *DeviceClassParametersSpec) *DeviceClassParametersSpec

func (*DeviceClassParametersSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassParametersSpec.

func (*DeviceClassParametersSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GpuClaimParameters

type GpuClaimParameters struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec GpuClaimParametersSpec `json:"spec,omitempty"`
}

GpuClaimParameters holds the set of parameters provided when creating a resource claim for a GPU.

func (*GpuClaimParameters) DeepCopy

func (in *GpuClaimParameters) DeepCopy() *GpuClaimParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuClaimParameters.

func (*GpuClaimParameters) DeepCopyInto

func (in *GpuClaimParameters) DeepCopyInto(out *GpuClaimParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GpuClaimParameters) DeepCopyObject

func (in *GpuClaimParameters) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GpuClaimParametersList

type GpuClaimParametersList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []GpuClaimParameters `json:"items"`
}

GpuClaimParametersList represents the "plural" of a GpuClaimParameters CRD object.

func (*GpuClaimParametersList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuClaimParametersList.

func (*GpuClaimParametersList) DeepCopyInto

func (in *GpuClaimParametersList) DeepCopyInto(out *GpuClaimParametersList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GpuClaimParametersList) DeepCopyObject

func (in *GpuClaimParametersList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GpuClaimParametersSpec

type GpuClaimParametersSpec struct {
	Count    *int                `json:"count,omitempty"`
	Selector *GpuSelector        `json:"selector,omitempty"`
	Sharing  *sharing.GpuSharing `json:"sharing,omitempty"`
}

GpuClaimParametersSpec is the spec for the GpuClaimParameters CRD.

func UpdateGpuClaimParametersSpecWithDefaults

func UpdateGpuClaimParametersSpecWithDefaults(oldspec *GpuClaimParametersSpec) *GpuClaimParametersSpec

func (*GpuClaimParametersSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuClaimParametersSpec.

func (*GpuClaimParametersSpec) DeepCopyInto

func (in *GpuClaimParametersSpec) DeepCopyInto(out *GpuClaimParametersSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GpuSelector

type GpuSelector struct {
	*GpuSelectorProperties `json:",omitempty"`
	AndExpression          []GpuSelector1 `json:"andExpression,omitempty"`
	OrExpression           []GpuSelector1 `json:"orExpression,omitempty"`
}

GpuSelector defines the set of conditions that can be used to select a specific GPU. This condition can either be a single property from the set of available GpuSelectorProperties or a nested list of GpuSelectors that are 'anded' or 'ored' together.

NOTE: Because CRDs do not allow recursively defined structs, we explicitly define up to 3 levels of nesting. This is done by defining new types with the same fields as this struct, up to 3 levels deep. +kubebuilder:validation:MaxProperties=1

func (*GpuSelector) DeepCopy

func (in *GpuSelector) DeepCopy() *GpuSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuSelector.

func (*GpuSelector) DeepCopyInto

func (in *GpuSelector) DeepCopyInto(out *GpuSelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (GpuSelector) Matches

func (s GpuSelector) Matches(compare func(*GpuSelectorProperties) bool) bool

Matches evaluates a GpuSelector to see if it matches the boolean expression it represents Each individual Properties object is passed to the caller via a callback to compare it in isolation before combining the results.

type GpuSelector1

type GpuSelector1 struct {
	*GpuSelectorProperties `json:",omitempty"`
	AndExpression          []GpuSelector2 `json:"andExpression,omitempty"`
	OrExpression           []GpuSelector2 `json:"orExpression,omitempty"`
}

GpuSelector1 is a copy of GpuSelector to enable the first level of nesting +kubebuilder:validation:MaxProperties=1

func (*GpuSelector1) DeepCopy

func (in *GpuSelector1) DeepCopy() *GpuSelector1

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuSelector1.

func (*GpuSelector1) DeepCopyInto

func (in *GpuSelector1) DeepCopyInto(out *GpuSelector1)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GpuSelector2

type GpuSelector2 struct {
	*GpuSelectorProperties `json:",omitempty"`
	AndExpression          []GpuSelector3 `json:"andExpression,omitempty"`
	OrExpression           []GpuSelector3 `json:"orExpression,omitempty"`
}

GpuSelector2 is a copy of GpuSelector to enable the second level of nesting +kubebuilder:validation:MaxProperties=1

func (*GpuSelector2) DeepCopy

func (in *GpuSelector2) DeepCopy() *GpuSelector2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuSelector2.

func (*GpuSelector2) DeepCopyInto

func (in *GpuSelector2) DeepCopyInto(out *GpuSelector2)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GpuSelector3

type GpuSelector3 struct {
	*GpuSelectorProperties `json:",omitempty"`
}

GpuSelector3 is a copy of GpuSelector to enable the third level of nesting +kubebuilder:validation:MaxProperties=1

func (*GpuSelector3) DeepCopy

func (in *GpuSelector3) DeepCopy() *GpuSelector3

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuSelector3.

func (*GpuSelector3) DeepCopyInto

func (in *GpuSelector3) DeepCopyInto(out *GpuSelector3)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GpuSelectorProperties

type GpuSelectorProperties struct {
	Index                 *selector.IntProperty        `json:"index,omitempty"`
	UUID                  *selector.StringProperty     `json:"uuid,omitempty"`
	MigEnabled            *selector.BoolProperty       `json:"migEnabled,omitempty"`
	Memory                *selector.QuantityComparator `json:"memory,omitempty"`
	ProductName           *selector.GlobProperty       `json:"productName,omitempty"`
	Brand                 *selector.GlobProperty       `json:"brand,omitempty"`
	Architecture          *selector.GlobProperty       `json:"architecture,omitempty"`
	CUDAComputeCapability *selector.VersionComparator  `json:"cudaComputeCapability,omitempty"`
	DriverVersion         *selector.VersionComparator  `json:"driverVersion,omitempty"`
	CUDADriverVersion     *selector.VersionComparator  `json:"cudaDriverVersion,omitempty"`
}

GpuSelectorProperties defines the full set of GPU properties that can be selected upon. +kubebuilder:validation:MaxProperties=1

func (*GpuSelectorProperties) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuSelectorProperties.

func (*GpuSelectorProperties) DeepCopyInto

func (in *GpuSelectorProperties) DeepCopyInto(out *GpuSelectorProperties)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MigDeviceClaimParameters

type MigDeviceClaimParameters struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec MigDeviceClaimParametersSpec `json:"spec,omitempty"`
}

MigDeviceClaimParameters holds the set of parameters provided when creating a resource claim for a MIG device.

func (*MigDeviceClaimParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigDeviceClaimParameters.

func (*MigDeviceClaimParameters) DeepCopyInto

func (in *MigDeviceClaimParameters) DeepCopyInto(out *MigDeviceClaimParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MigDeviceClaimParameters) DeepCopyObject

func (in *MigDeviceClaimParameters) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MigDeviceClaimParametersList

type MigDeviceClaimParametersList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []MigDeviceClaimParameters `json:"items"`
}

MigDeviceClaimParametersList represents the "plural" of a MigDeviceClaimParameters CRD object.

func (*MigDeviceClaimParametersList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigDeviceClaimParametersList.

func (*MigDeviceClaimParametersList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MigDeviceClaimParametersList) DeepCopyObject

func (in *MigDeviceClaimParametersList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MigDeviceClaimParametersSpec

type MigDeviceClaimParametersSpec struct {
	Profile                string                    `json:"profile,omitempty"`
	Sharing                *sharing.MigDeviceSharing `json:"sharing,omitempty"`
	GpuClaimParametersName string                    `json:"gpuClaimName,omitempty"`
}

MigDeviceClaimParametersSpec is the spec for the MigDeviceClaimParameters CRD.

func UpdateMigDeviceClaimParametersSpecWithDefaults

func UpdateMigDeviceClaimParametersSpecWithDefaults(oldspec *MigDeviceClaimParametersSpec) *MigDeviceClaimParametersSpec

func (*MigDeviceClaimParametersSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigDeviceClaimParametersSpec.

func (*MigDeviceClaimParametersSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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