Documentation
¶
Index ¶
- type Controller
- func (c *Controller) DoRecommend(ctx context.Context, recommendation *analysisv1alph1.Recommendation)
- func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (c *Controller) SetupWithManager(mgr ctrl.Manager) error
- func (c *Controller) ShouldRecommend(recommendation *analysisv1alph1.Recommendation) bool
- func (c *Controller) UpdateStatus(ctx context.Context, recommendation *analysisv1alph1.Recommendation, ...)
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) 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)
Click to show internal directories.
Click to hide internal directories.