recommendation

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	client.Client
	ConfigSet   *analysisv1alph1.ConfigSet
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	RestMapper  meta.RESTMapper
	ScaleClient scale.ScalesGetter
	Predictors  map[predictionapi.AlgorithmType]prediction.Interface
	Provider    providers.Interface
}

Controller is responsible for reconcile Recommendation

func (*Controller) DoRecommend added in v0.2.0

func (c *Controller) DoRecommend(ctx context.Context, recommendation *analysisv1alph1.Recommendation)

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr ctrl.Manager) error

func (*Controller) ShouldRecommend added in v0.2.0

func (c *Controller) ShouldRecommend(recommendation *analysisv1alph1.Recommendation) bool

ShouldRecommend decide if we need do recommendation according to status

func (*Controller) UpdateStatus

func (c *Controller) UpdateStatus(ctx context.Context, recommendation *analysisv1alph1.Recommendation, newStatus *analysisv1alph1.RecommendationStatus)

Jump to

Keyboard shortcuts

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