noderesource

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtResourcePrefix = "ext-resource.node.gocrane.io/%s"
	MinDeltaRatio     = 0.1
	CoolDownTime      = 5 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeResourceReconciler

type NodeResourceReconciler struct {
	client.Client
	Recorder record.EventRecorder
}

NodeResourceReconciler reconciles a NodeResource object

func (*NodeResourceReconciler) BuildNodeStatus

func (r *NodeResourceReconciler) BuildNodeStatus(tsp *predictionapi.TimeSeriesPrediction, node *v1.Node)

func (*NodeResourceReconciler) FindTargetNode

func (*NodeResourceReconciler) Reconcile

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

func (*NodeResourceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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