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 ¶
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 ¶
func (in *GpuPolicyAdapterList) DeepCopy() *GpuPolicyAdapterList
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 ¶
func (in *GpuPolicyAdapterSpec) DeepCopy() *GpuPolicyAdapterSpec
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 ¶
func (in *GpuPolicyAdapterStatus) DeepCopy() *GpuPolicyAdapterStatus
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VGPUSpec.
func (*VGPUSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.