Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ReplicasRecommender name ReplicasRecommender string = "Replicas" // ResourceRecommender name ResourceRecommender string = "Resource" // HPARecommender name HPARecommender string = "HPA" // IdleNodeRecommender name IdleNodeRecommender string = "IdleNode" // VolumeRecommender name VolumeRecommender string = "Volume" // ServiceRecommender name ServiceRecommender string = "Service" )
Variables ¶
This section is empty.
Functions ¶
func RegisterRecommenderProvider ¶ added in v0.11.0
RegisterRecommenderProvider registers a recommender.Factory by name. This is expected to happen during app startup.
Types ¶
type Factory ¶ added in v0.11.0
type Factory func(apis.Recommender, analysisv1alph1.RecommendationRule) (Recommender, error)
type Recommender ¶
type Recommender interface { Name() string framework.Filter framework.PrePrepare framework.Prepare framework.PostPrepare framework.PreRecommend framework.Recommend framework.PostRecommend framework.Observe }
func GetRecommenderProvider ¶ added in v0.11.0
func GetRecommenderProvider(recommenderName string, recommender apis.Recommender, recommendationRule analysisv1alph1.RecommendationRule) (Recommender, error)
GetRecommenderProvider creates an instance of the named Recommender provider, or nil if the name is unknown. The error return is only used if the named provider was known but failed to initialize.
Click to show internal directories.
Click to hide internal directories.