v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "slo.koordinator.sh", Version: "v1alpha1"}

	SchemeGroupVersion = GroupVersion

	// 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
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/...

Types

type CPUSuppressPolicy

type CPUSuppressPolicy string
const (
	CPUSetPolicy      CPUSuppressPolicy = "cpuset"
	CPUCfsQuotaPolicy CPUSuppressPolicy = "cfsQuota"
)

type NodeMetric

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

	Spec   NodeMetricSpec   `json:"spec,omitempty"`
	Status NodeMetricStatus `json:"status,omitempty"`
}

NodeMetric is the Schema for the nodemetrics API

func (*NodeMetric) DeepCopy

func (in *NodeMetric) DeepCopy() *NodeMetric

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

func (*NodeMetric) DeepCopyInto

func (in *NodeMetric) DeepCopyInto(out *NodeMetric)

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

func (*NodeMetric) DeepCopyObject

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

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

type NodeMetricInfo

type NodeMetricInfo struct {
	NodeUsage ResourceMap `json:"nodeUsage,omitempty"`
}

func (*NodeMetricInfo) DeepCopy

func (in *NodeMetricInfo) DeepCopy() *NodeMetricInfo

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

func (*NodeMetricInfo) DeepCopyInto

func (in *NodeMetricInfo) DeepCopyInto(out *NodeMetricInfo)

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

type NodeMetricList

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

NodeMetricList contains a list of NodeMetric

func (*NodeMetricList) DeepCopy

func (in *NodeMetricList) DeepCopy() *NodeMetricList

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

func (*NodeMetricList) DeepCopyInto

func (in *NodeMetricList) DeepCopyInto(out *NodeMetricList)

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

func (*NodeMetricList) DeepCopyObject

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

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

type NodeMetricSpec

type NodeMetricSpec struct{}

NodeMetricSpec defines the desired state of NodeMetric

func (*NodeMetricSpec) DeepCopy

func (in *NodeMetricSpec) DeepCopy() *NodeMetricSpec

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

func (*NodeMetricSpec) DeepCopyInto

func (in *NodeMetricSpec) DeepCopyInto(out *NodeMetricSpec)

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

type NodeMetricStatus

type NodeMetricStatus struct {
	// UpdateTime is the last time this NodeMetric was updated.
	UpdateTime *metav1.Time `json:"updateTime,omitempty"`

	// NodeMetric contains the metrics for this node.
	NodeMetric *NodeMetricInfo `json:"nodeMetric,omitempty"`

	// PodsMetric contains the metrics for pods belong to this node.
	PodsMetric []*PodMetricInfo `json:"podsMetric,omitempty"`
}

NodeMetricStatus defines the observed state of NodeMetric

func (*NodeMetricStatus) DeepCopy

func (in *NodeMetricStatus) DeepCopy() *NodeMetricStatus

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

func (*NodeMetricStatus) DeepCopyInto

func (in *NodeMetricStatus) DeepCopyInto(out *NodeMetricStatus)

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

type NodeSLO

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

	Spec   NodeSLOSpec   `json:"spec,omitempty"`
	Status NodeSLOStatus `json:"status,omitempty"`
}

NodeSLO is the Schema for the nodeslos API

func (*NodeSLO) DeepCopy

func (in *NodeSLO) DeepCopy() *NodeSLO

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

func (*NodeSLO) DeepCopyInto

func (in *NodeSLO) DeepCopyInto(out *NodeSLO)

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

func (*NodeSLO) DeepCopyObject

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

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

type NodeSLOList

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

NodeSLOList contains a list of NodeSLO

func (*NodeSLOList) DeepCopy

func (in *NodeSLOList) DeepCopy() *NodeSLOList

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

func (*NodeSLOList) DeepCopyInto

func (in *NodeSLOList) DeepCopyInto(out *NodeSLOList)

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

func (*NodeSLOList) DeepCopyObject

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

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

type NodeSLOSpec

type NodeSLOSpec struct {
	// BE pods will be limited if node resource usage overload
	ResourceUsedThresholdWithBE *ResourceThresholdStrategy `json:"resourceUsedThresholdWithBE,omitempty"`
}

NodeSLOSpec defines the desired state of NodeSLO

func (*NodeSLOSpec) DeepCopy

func (in *NodeSLOSpec) DeepCopy() *NodeSLOSpec

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

func (*NodeSLOSpec) DeepCopyInto

func (in *NodeSLOSpec) DeepCopyInto(out *NodeSLOSpec)

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

type NodeSLOStatus

type NodeSLOStatus struct {
}

NodeSLOStatus defines the observed state of NodeSLO

func (*NodeSLOStatus) DeepCopy

func (in *NodeSLOStatus) DeepCopy() *NodeSLOStatus

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

func (*NodeSLOStatus) DeepCopyInto

func (in *NodeSLOStatus) DeepCopyInto(out *NodeSLOStatus)

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

type PodMetricInfo

type PodMetricInfo struct {
	Name      string      `json:"name,omitempty"`
	Namespace string      `json:"namespace,omitempty"`
	PodUsage  ResourceMap `json:"podUsage,omitempty"`
}

func (*PodMetricInfo) DeepCopy

func (in *PodMetricInfo) DeepCopy() *PodMetricInfo

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

func (*PodMetricInfo) DeepCopyInto

func (in *PodMetricInfo) DeepCopyInto(out *PodMetricInfo)

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

type ResourceMap

type ResourceMap struct {
	corev1.ResourceList `json:"resources,omitempty"`
}

func (*ResourceMap) DeepCopy

func (in *ResourceMap) DeepCopy() *ResourceMap

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

func (*ResourceMap) DeepCopyInto

func (in *ResourceMap) DeepCopyInto(out *ResourceMap)

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

type ResourceThresholdStrategy

type ResourceThresholdStrategy struct {
	// whether the strategy is enabled, default = true
	Enable *bool `json:"enable,omitempty"`
	// cpu suppress threshold percentage (0,100), default = 65
	CPUSuppressThresholdPercent *int64 `json:"cpuSuppressThresholdPercent,omitempty"`
	//CPUSuppressPolicy
	CPUSuppressPolicy CPUSuppressPolicy `json:"cpuSuppressPolicy,omitempty"`
}

func (*ResourceThresholdStrategy) DeepCopy

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

func (*ResourceThresholdStrategy) DeepCopyInto

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