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.godel.kubewharf.io" )
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 NMNode ¶
type NMNode struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the behavior of a NMNode. // +optional Spec NMNodeSpec `json:"spec,omitempty"` // Status represents the current information about a NMNode. This data may not be up // to date. // +optional Status NMNodeStatus `json:"status,omitempty"` }
NMNode is the struct created for NodeManager to report and store node info
func (*NMNode) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NMNode.
func (*NMNode) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NMNode) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NMNodeList ¶
type NMNodeList 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 NMNode Items []NMNode `json:"items"` }
NMNodeList is a collection of NMNode objects.
func (*NMNodeList) DeepCopy ¶
func (in *NMNodeList) DeepCopy() *NMNodeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NMNodeList.
func (*NMNodeList) DeepCopyInto ¶
func (in *NMNodeList) DeepCopyInto(out *NMNodeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NMNodeList) DeepCopyObject ¶
func (in *NMNodeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NMNodeSpec ¶
type NMNodeSpec struct { // If specified, the nmnode's taints. // TODO:should we move this to NMNode Status ? // +optional Taints []v1.Taint `json:"taints,omitempty"` }
func (*NMNodeSpec) DeepCopy ¶
func (in *NMNodeSpec) DeepCopy() *NMNodeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NMNodeSpec.
func (*NMNodeSpec) DeepCopyInto ¶
func (in *NMNodeSpec) DeepCopyInto(out *NMNodeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NMNodeStatus ¶
type NMNodeStatus 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 (*NMNodeStatus) DeepCopy ¶
func (in *NMNodeStatus) DeepCopy() *NMNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NMNodeStatus.
func (*NMNodeStatus) DeepCopyInto ¶
func (in *NMNodeStatus) DeepCopyInto(out *NMNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.