Documentation ¶
Index ¶
- func NewIdleNodeRecommender(recommender apis.Recommender, ...) (recommender.Recommender, error)
- type IdleNodeRecommender
- func (inr *IdleNodeRecommender) CheckDataProviders(ctx *framework.RecommendationContext) error
- func (inr *IdleNodeRecommender) CollectData(ctx *framework.RecommendationContext) error
- func (inr *IdleNodeRecommender) Filter(ctx *framework.RecommendationContext) error
- func (inr *IdleNodeRecommender) Name() string
- func (inr *IdleNodeRecommender) Observe(ctx *framework.RecommendationContext) error
- func (inr *IdleNodeRecommender) Policy(ctx *framework.RecommendationContext) error
- func (inr *IdleNodeRecommender) PostProcessing(ctx *framework.RecommendationContext) error
- func (inr *IdleNodeRecommender) PreRecommend(ctx *framework.RecommendationContext) error
- func (inr *IdleNodeRecommender) Recommend(ctx *framework.RecommendationContext) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIdleNodeRecommender ¶
func NewIdleNodeRecommender(recommender apis.Recommender, recommendationRule analysisv1alph1.RecommendationRule) (recommender.Recommender, error)
NewIdleNodeRecommender create a new idle node recommender.
Types ¶
type IdleNodeRecommender ¶
type IdleNodeRecommender struct { base.BaseRecommender // contains filtered or unexported fields }
func (*IdleNodeRecommender) CheckDataProviders ¶
func (inr *IdleNodeRecommender) CheckDataProviders(ctx *framework.RecommendationContext) error
CheckDataProviders in PrePrepare phase, will create data source provider via your recommendation config.
func (*IdleNodeRecommender) CollectData ¶
func (inr *IdleNodeRecommender) CollectData(ctx *framework.RecommendationContext) error
func (*IdleNodeRecommender) Filter ¶
func (inr *IdleNodeRecommender) Filter(ctx *framework.RecommendationContext) error
Filter out k8s resources that are not supported by the recommender.
func (*IdleNodeRecommender) Name ¶
func (inr *IdleNodeRecommender) Name() string
func (*IdleNodeRecommender) Observe ¶
func (inr *IdleNodeRecommender) Observe(ctx *framework.RecommendationContext) error
Observe enhance the observability.
func (*IdleNodeRecommender) Policy ¶
func (inr *IdleNodeRecommender) Policy(ctx *framework.RecommendationContext) error
Policy add some logic for result of recommend phase.
func (*IdleNodeRecommender) PostProcessing ¶
func (inr *IdleNodeRecommender) PostProcessing(ctx *framework.RecommendationContext) error
func (*IdleNodeRecommender) PreRecommend ¶
func (inr *IdleNodeRecommender) PreRecommend(ctx *framework.RecommendationContext) error
func (*IdleNodeRecommender) Recommend ¶
func (inr *IdleNodeRecommender) Recommend(ctx *framework.RecommendationContext) error
Click to show internal directories.
Click to hide internal directories.