v1alpha1

package
v0.0.0-...-83d525d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 provides alpha API for Orchestration Node API objects.

Index

Constants

View Source
const (
	// GroupName is the group name used in this package
	GroupName string = "node.escheduler.sh"
)

Variables

View Source
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
)
View Source
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 NodePhase

type NodePhase string

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

func (in *VNode) DeepCopy() *VNode

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VNode.

func (*VNode) DeepCopyInto

func (in *VNode) DeepCopyInto(out *VNode)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VNode) DeepCopyObject

func (in *VNode) DeepCopyObject() runtime.Object

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

func (in *VNodeList) DeepCopy() *VNodeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VNodeList.

func (*VNodeList) DeepCopyInto

func (in *VNodeList) DeepCopyInto(out *VNodeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VNodeList) DeepCopyObject

func (in *VNodeList) DeepCopyObject() runtime.Object

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

func (in *VNodeSpec) DeepCopy() *VNodeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VNodeSpec.

func (*VNodeSpec) DeepCopyInto

func (in *VNodeSpec) DeepCopyInto(out *VNodeSpec)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL