Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the inference v1alpha1 API group +kubebuilder:object:generate=true +groupName=inference.redhat.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "inference.redhat.com", Version: "v1alpha1"} // 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 AllocationDetails ¶
type AllocationDetails struct { Profile string `json:"profile"` Start uint32 `json:"start"` Size uint32 `json:"size"` PodUUID string `json:"podUUID"` GPUUUID string `json:"gpuUUID"` Nodename string `json:"nodename"` // +kubebuilder:validation:Enum:=deleted;deleting;ungated;creating;created Allocationstatus AllocationStatus `json:"allocationStatus"` Resourceidentifier string `json:"resourceIdentifier"` Namespace string `json:"namespace"` PodName string `json:"podName"` Cpu int64 `json:"cpu"` Memory int64 `json:"memory"` }
Define the struct for allocation details
func (*AllocationDetails) DeepCopy ¶
func (in *AllocationDetails) DeepCopy() *AllocationDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationDetails.
func (*AllocationDetails) DeepCopyInto ¶
func (in *AllocationDetails) DeepCopyInto(out *AllocationDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AllocationStatus ¶
type AllocationStatus string
const ( AllocationStatusDeleted AllocationStatus = "deleted" AllocationStatusDeleting AllocationStatus = "deleting" AllocationStatusUngated AllocationStatus = "ungated" AllocationStatusCreating AllocationStatus = "creating" AllocationStatusCreated AllocationStatus = "created" )
type Instaslice ¶
type Instaslice struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec InstasliceSpec `json:"spec,omitempty"` Status InstasliceStatus `json:"status,omitempty"` }
Instaslice is the Schema for the instaslices API
func (*Instaslice) DeepCopy ¶
func (in *Instaslice) DeepCopy() *Instaslice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Instaslice.
func (*Instaslice) DeepCopyInto ¶
func (in *Instaslice) DeepCopyInto(out *Instaslice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Instaslice) DeepCopyObject ¶
func (in *Instaslice) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstasliceList ¶
type InstasliceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Instaslice `json:"items"` }
InstasliceList contains a list of Instaslice
func (*InstasliceList) DeepCopy ¶
func (in *InstasliceList) DeepCopy() *InstasliceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstasliceList.
func (*InstasliceList) DeepCopyInto ¶
func (in *InstasliceList) DeepCopyInto(out *InstasliceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstasliceList) DeepCopyObject ¶
func (in *InstasliceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstasliceSpec ¶
type InstasliceSpec struct { MigGPUUUID map[string]string `json:"MigGPUUUID,omitempty"` Allocations map[string]AllocationDetails `json:"allocations,omitempty"` Migplacement []Mig `json:"migplacement,omitempty"` CpuOnNodeAtBoot int64 `json:"cpuonnodeatboot,omitempty"` MemoryOnNodeAtBoot int64 `json:"memoryonnodeatboot,omitempty"` }
InstasliceSpec defines the desired state of Instaslice
func (*InstasliceSpec) DeepCopy ¶
func (in *InstasliceSpec) DeepCopy() *InstasliceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstasliceSpec.
func (*InstasliceSpec) DeepCopyInto ¶
func (in *InstasliceSpec) DeepCopyInto(out *InstasliceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstasliceStatus ¶
type InstasliceStatus struct {
Processed bool `json:"processed,omitempty"`
}
InstasliceStatus defines the observed state of Instaslice
func (*InstasliceStatus) DeepCopy ¶
func (in *InstasliceStatus) DeepCopy() *InstasliceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstasliceStatus.
func (*InstasliceStatus) DeepCopyInto ¶
func (in *InstasliceStatus) DeepCopyInto(out *InstasliceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Mig ¶
type Mig struct { Placements []Placement `json:"placements,omitempty"` Profile string `json:"profile,omitempty"` Giprofileid int `json:"giprofileid"` CIProfileID int `json:"ciProfileid"` CIEngProfileID int `json:"ciengprofileid"` }
func (*Mig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mig.
func (*Mig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.