nodeslo

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Name = "nodeslo"

Variables

This section is empty.

Functions

func Add added in v1.1.0

func Add(mgr ctrl.Manager) error

func RegisterDefaultExtension added in v1.2.0

func RegisterDefaultExtension(key string, ext interface{}) error

func RegisterNodeSLOMergedExtender added in v1.2.0

func RegisterNodeSLOMergedExtender(name string, extender NodeSLOMergedPlugin) error

func UnregisterDefaultExtension added in v1.2.0

func UnregisterDefaultExtension(key string)

func UnregisterNodeSLOMergedExtender added in v1.2.0

func UnregisterNodeSLOMergedExtender(name string)

Types

type NodeSLOMergedPlugin added in v1.2.0

type NodeSLOMergedPlugin interface {
	// calculate each extension cfg merged
	MergeNodeSLOExtension(oldCfgMap configuration.ExtensionCfgMap, configMap *corev1.ConfigMap, recorder record.EventRecorder) (configuration.ExtensionCfgMap, error)
	// get each extension config spec
	GetNodeSLOExtension(node *corev1.Node, cfg *configuration.ExtensionCfgMap) (string, interface{}, error)
}

type NodeSLOReconciler

type NodeSLOReconciler struct {
	client.Client

	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

NodeSLOReconciler reconciles a NodeSLO object

func (*NodeSLOReconciler) Reconcile

func (r *NodeSLOReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*NodeSLOReconciler) SetupWithManager

func (r *NodeSLOReconciler) SetupWithManager(mgr ctrl.Manager) error

type SLOCfg added in v0.5.0

type SLOCfg struct {
	ThresholdCfgMerged   configuration.ResourceThresholdCfg `json:"thresholdCfgMerged,omitempty"`
	ResourceQOSCfgMerged configuration.ResourceQOSCfg       `json:"resourceQOSCfgMerged,omitempty"`
	CPUBurstCfgMerged    configuration.CPUBurstCfg          `json:"cpuBurstCfgMerged,omitempty"`
	SystemCfgMerged      configuration.SystemCfg            `json:"systemCfgMerged,omitempty"`
	HostAppCfgMerged     configuration.HostApplicationCfg   `json:"hostAppCfgMerged,omitempty"`
	ExtensionCfgMerged   configuration.ExtensionCfgMap      `json:"extensionCfgMerged,omitempty"` // for third-party extension
}

func DefaultSLOCfg added in v0.5.0

func DefaultSLOCfg() SLOCfg

func (*SLOCfg) DeepCopy added in v0.5.0

func (in *SLOCfg) DeepCopy() *SLOCfg

type SLOCfgCache added in v0.5.0

type SLOCfgCache interface {
	GetCfgCopy() *SLOCfg
	IsCfgAvailable() bool
}

type SLOCfgHandlerForConfigMapEvent added in v0.5.0

type SLOCfgHandlerForConfigMapEvent struct {
	config.EnqueueRequestForConfigMap

	Client client.Client
	// contains filtered or unexported fields
}

func NewSLOCfgHandlerForConfigMapEvent added in v0.5.0

func NewSLOCfgHandlerForConfigMapEvent(client client.Client, initCfg SLOCfg, recorder record.EventRecorder) *SLOCfgHandlerForConfigMapEvent

func (*SLOCfgHandlerForConfigMapEvent) GetCfgCopy added in v0.7.0

func (p *SLOCfgHandlerForConfigMapEvent) GetCfgCopy() *SLOCfg

func (*SLOCfgHandlerForConfigMapEvent) IsCfgAvailable added in v0.7.0

func (p *SLOCfgHandlerForConfigMapEvent) IsCfgAvailable() bool

Jump to

Keyboard shortcuts

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