Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the resources.scheduler v1 API group +kubebuilder:object:generate=true +groupName=resources.scheduler.caden2016.github.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "resources.scheduler.caden2016.github.io", Version: "v1"} // 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 )
var SchemeGroupVersion = GroupVersion
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type ContainerResourcesDetail ¶
type ContainerResourcesDetail struct { Name string `json:"container_name,omitempty"` DeviceInfo []*jsonstruct.GpuInfo `json:"device_info,omitempty"` }
func (*ContainerResourcesDetail) DeepCopy ¶
func (in *ContainerResourcesDetail) DeepCopy() *ContainerResourcesDetail
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourcesDetail.
func (*ContainerResourcesDetail) DeepCopyInto ¶
func (in *ContainerResourcesDetail) DeepCopyInto(out *ContainerResourcesDetail)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GpuPod ¶
type GpuPod struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GpuPodSpec `json:"spec,omitempty"` Status GpuPodStatus `json:"status,omitempty"` }
GpuPod is the Schema for the gpupods API
func (*GpuPod) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuPod.
func (*GpuPod) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GpuPod) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GpuPodList ¶
type GpuPodList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GpuPod `json:"items"` }
GpuPodList contains a list of GpuPod
func (*GpuPodList) DeepCopy ¶
func (in *GpuPodList) DeepCopy() *GpuPodList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuPodList.
func (*GpuPodList) DeepCopyInto ¶
func (in *GpuPodList) DeepCopyInto(out *GpuPodList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GpuPodList) DeepCopyObject ¶
func (in *GpuPodList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GpuPodSpec ¶
type GpuPodSpec struct { Name string `json:"pod_name,omitempty"` Namespace string `json:"pod_namespace,omitempty"` NodeName string `json:"node_name,omitempty"` // ContainerDevices is list of container name and gpu devices in each container. ContainerDevices []ContainerResourcesDetail `json:"containers_device,omitempty"` }
GpuPodSpec defines the desired state of GpuPod
func (*GpuPodSpec) DeepCopy ¶
func (in *GpuPodSpec) DeepCopy() *GpuPodSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuPodSpec.
func (*GpuPodSpec) DeepCopyInto ¶
func (in *GpuPodSpec) DeepCopyInto(out *GpuPodSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GpuPodStatus ¶
type GpuPodStatus struct {
LastChangedTime string `json:"last_changed_time,omitempty"`
}
GpuPodStatus defines the observed state of GpuPod
func (*GpuPodStatus) DeepCopy ¶
func (in *GpuPodStatus) DeepCopy() *GpuPodStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuPodStatus.
func (*GpuPodStatus) DeepCopyInto ¶
func (in *GpuPodStatus) DeepCopyInto(out *GpuPodStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.