v1alpha1

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the nodeinfo v1alpha1 API group +kubebuilder:object:generate=true +groupName=nodeinfo.volcano.sh

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "nodeinfo.volcano.sh", 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
)
View Source
var SchemeGroupVersion = GroupVersion

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type CPUInfo added in v1.0.1

type CPUInfo struct {
	NUMANodeID int `json:"numa,omitempty"`
	SocketID   int `json:"socket,omitempty"`
	CoreID     int `json:"core,omitempty"`
}

type Numatopo

type Numatopo struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Specification of the numa information of the worker node
	Spec NumatopoSpec `json:"spec,omitempty"`
}

Numatopo is the Schema for the numatopoes API

func (*Numatopo) DeepCopy

func (in *Numatopo) DeepCopy() *Numatopo

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

func (*Numatopo) DeepCopyInto

func (in *Numatopo) DeepCopyInto(out *Numatopo)

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

func (*Numatopo) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NumatopoList

type NumatopoList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Numatopo `json:"items"`
}

NumatopoList contains a list of Numatopo

func (*NumatopoList) DeepCopy

func (in *NumatopoList) DeepCopy() *NumatopoList

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

func (*NumatopoList) DeepCopyInto

func (in *NumatopoList) DeepCopyInto(out *NumatopoList)

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

func (*NumatopoList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NumatopoSpec

type NumatopoSpec struct {
	// Specifies the policy of the manager
	// +optional
	Policies map[PolicyName]string `json:"policies,omitempty"`

	// Specifies the numa info for the resource
	// Key is resource name
	// +optional
	NumaResMap map[string]ResourceInfoMap `json:"numares,omitempty"`

	// Specifies the cpu topology info
	// Key is cpu id
	// +optional
	CpuDetail map[string]CPUInfo `json:"cpuDetail,omitempty"`
}

NumatopoSpec defines the desired state of Numatopo

func (*NumatopoSpec) DeepCopy

func (in *NumatopoSpec) DeepCopy() *NumatopoSpec

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

func (*NumatopoSpec) DeepCopyInto

func (in *NumatopoSpec) DeepCopyInto(out *NumatopoSpec)

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

type PolicyName

type PolicyName string
const (
	CPUManagerPolicy      PolicyName = "CPUManagerPolicy"
	TopologyManagerPolicy PolicyName = "TopologyManagerPolicy"
)

type ResourceInfo

type ResourceInfo struct {
	Allocatable []int `json:"allocatable,omitempty"`
	Capacity    int   `json:"capacity,omitempty"`
}

type ResourceInfoMap

type ResourceInfoMap map[string]ResourceInfo

Key is numa ID

Jump to

Keyboard shortcuts

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