Documentation
¶
Index ¶
- Constants
- type NodeResourceReconciler
- func (r *NodeResourceReconciler) BuildNodeStatus(tsp *predictionapi.TimeSeriesPrediction, node *v1.Node)
- func (r *NodeResourceReconciler) FindTargetNode(ctx context.Context, tsp *predictionapi.TimeSeriesPrediction) (*v1.Node, error, bool)
- func (r *NodeResourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *NodeResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
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 (r *NodeResourceReconciler) FindTargetNode(ctx context.Context, tsp *predictionapi.TimeSeriesPrediction) (*v1.Node, error, bool)
func (*NodeResourceReconciler) SetupWithManager ¶
func (r *NodeResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.