Documentation
¶
Index ¶
- type Controller
- func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (c *Controller) SetupWithManager(mgr ctrl.Manager) error
- func (c *Controller) UpdateRecommendation(ctx context.Context, recommendation *analysisapi.Recommendation) (bool, error)
- 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
PredictorMgr predictormgr.Manager
Provider providers.History
}
Controller is responsible for reconcile Recommendation
func (*Controller) SetupWithManager ¶
func (c *Controller) SetupWithManager(mgr ctrl.Manager) error
func (*Controller) UpdateRecommendation ¶ added in v0.3.0
func (c *Controller) UpdateRecommendation(ctx context.Context, recommendation *analysisapi.Recommendation) (bool, error)
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.