Documentation
¶
Overview ¶
Package v1alpha1 provides alpha API for Orchestration Node API objects.
Index ¶
Constants ¶
const ( // GroupName is the group name used in this package GroupName string = "node.escheduler.sh" )
Variables ¶
var ( // SchemeBuilder collects schemas to build. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is used by generated client to add this scheme to the generated client. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type MachineStatus ¶
type MachineStatus struct { // +optional LoadAvgLastM *resource.Quantity `json:"loadAvgLastM,omitempty"` }
func (*MachineStatus) DeepCopy ¶
func (in *MachineStatus) DeepCopy() *MachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
func (*MachineStatus) DeepCopyInto ¶
func (in *MachineStatus) DeepCopyInto(out *MachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VNode ¶
type VNode struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the behavior of a NMNode. // +optional Spec VNodeSpec `json:"spec,omitempty"` // Status represents the current information about a NMNode. This data may not be up // to date. // +optional Status VNodeStatus `json:"status,omitempty"` }
VNode is the struct created for Virtual Node to report and store node info
func (*VNode) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VNode.
func (*VNode) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VNode) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VNodeList ¶
type VNodeList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty"` // items is the list of ENode Items []VNode `json:"items"` }
VNodeList is a collection of VNode objects.
func (*VNodeList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VNodeList.
func (*VNodeList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VNodeList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VNodeSpec ¶
type VNodeSpec struct { // If specified, the nmnode's taints. // TODO:should we move this to NMNode Status ? // +optional Taints []v1.Taint `json:"taints,omitempty"` }
func (*VNodeSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VNodeSpec.
func (*VNodeSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VNodeStatus ¶
type VNodeStatus struct { // store the resource info reported by RM(NM) // +optional ResourceCapacity *v1.ResourceList `json:"resourceCapacity,omitempty"` // +optional ResourceAllocatable *v1.ResourceList `json:"resourceAllocatable,omitempty"` // node status from Yarn perspective // +optional NodeStatus NodePhase `json:"nodeStatus,omitempty"` // +optional NodeCondition []*v1.NodeCondition `json:"nodeCondition,omitempty"` // machine status // +optional MachineStatus *MachineStatus `json:"machineStatus,omitempty"` }
func (*VNodeStatus) DeepCopy ¶
func (in *VNodeStatus) DeepCopy() *VNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VNodeStatus.
func (*VNodeStatus) DeepCopyInto ¶
func (in *VNodeStatus) DeepCopyInto(out *VNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.