v1beta2

package
v0.10.0-rc4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

+kubebuilder:validation:Optional

Package v1beta1 contains API Schema definitions for the opni.io v1beta1 API group +kubebuilder:object:generate=true +groupName=opni.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "opni.io", Version: "v1beta2"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ContainerRuntime

type ContainerRuntime string
const (
	// Auto will detect the container runtime based on the Kubernetes provider
	// in use. Containerd is the default, unless the cluster is using RKE.
	Auto       ContainerRuntime = "auto"
	Docker     ContainerRuntime = "docker"
	Containerd ContainerRuntime = "containerd"
	Crio       ContainerRuntime = "crio"
)

type GpuPolicyAdapter

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

	Spec   GpuPolicyAdapterSpec   `json:"spec,omitempty"`
	Status GpuPolicyAdapterStatus `json:"status,omitempty"`
}

GpuPolicyAdapter is the Schema for the gpupolicyadapters API

func (*GpuPolicyAdapter) DeepCopy

func (in *GpuPolicyAdapter) DeepCopy() *GpuPolicyAdapter

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

func (*GpuPolicyAdapter) DeepCopyInto

func (in *GpuPolicyAdapter) DeepCopyInto(out *GpuPolicyAdapter)

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

func (*GpuPolicyAdapter) DeepCopyObject

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

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

type GpuPolicyAdapterList

type GpuPolicyAdapterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GpuPolicyAdapter `json:"items"`
}

GpuPolicyAdapterList contains a list of GpuPolicyAdapter

func (*GpuPolicyAdapterList) DeepCopy

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

func (*GpuPolicyAdapterList) DeepCopyInto

func (in *GpuPolicyAdapterList) DeepCopyInto(out *GpuPolicyAdapterList)

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

func (*GpuPolicyAdapterList) DeepCopyObject

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

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

type GpuPolicyAdapterSpec

type GpuPolicyAdapterSpec struct {
	// +kubebuilder:validation:Enum={"auto","docker","containerd","crio"}
	// +kubebuilder:default=auto
	ContainerRuntime ContainerRuntime `json:"containerRuntime,omitempty"`
	// +kubebuilder:validation:Enum={"auto","k3s","rke2","rke","none"}
	// +kubebuilder:default=auto
	KubernetesProvider string     `json:"kubernetesProvider,omitempty"`
	Images             ImagesSpec `json:"images,omitempty"`
	VGPU               *VGPUSpec  `json:"vgpu,omitempty"`
	// +kubebuilder:validation:Optional
	Template nvidiav1.ClusterPolicySpec `json:"template,omitempty"`
}

GpuPolicyAdapterSpec defines the desired state of GpuPolicyAdapter

func (*GpuPolicyAdapterSpec) DeepCopy

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

func (*GpuPolicyAdapterSpec) DeepCopyInto

func (in *GpuPolicyAdapterSpec) DeepCopyInto(out *GpuPolicyAdapterSpec)

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

type GpuPolicyAdapterStatus

type GpuPolicyAdapterStatus struct {
}

GpuPolicyAdapterStatus defines the observed state of GpuPolicyAdapter

func (*GpuPolicyAdapterStatus) DeepCopy

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

func (*GpuPolicyAdapterStatus) DeepCopyInto

func (in *GpuPolicyAdapterStatus) DeepCopyInto(out *GpuPolicyAdapterStatus)

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

type ImagesSpec

type ImagesSpec struct {
	Driver        string `json:"driver,omitempty"`
	DriverManager string `json:"driverManager,omitempty"`
	DCGM          string `json:"dcgm,omitempty"`
	DCGMExporter  string `json:"dcgmExporter,omitempty"`
	DevicePlugin  string `json:"devicePlugin,omitempty"`
	GFD           string `json:"gfd,omitempty"`
	InitContainer string `json:"initContainer,omitempty"`
	Toolkit       string `json:"toolkit,omitempty"`
	Validator     string `json:"validator,omitempty"`
	MIGManager    string `json:"migManager,omitempty"`
}

func (*ImagesSpec) DeepCopy

func (in *ImagesSpec) DeepCopy() *ImagesSpec

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

func (*ImagesSpec) DeepCopyInto

func (in *ImagesSpec) DeepCopyInto(out *ImagesSpec)

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

type VGPUSpec

type VGPUSpec struct {
	LicenseConfigMap string `json:"licenseConfigMap,omitempty"`
	// +kubebuilder:validation:Enum={"nls","legacy"}
	LicenseServerKind string `json:"licenseServerKind,omitempty"`
}

func (*VGPUSpec) DeepCopy

func (in *VGPUSpec) DeepCopy() *VGPUSpec

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

func (*VGPUSpec) DeepCopyInto

func (in *VGPUSpec) DeepCopyInto(out *VGPUSpec)

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