Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRecommender ¶
func GetRecommender() map[string]ResourceRecommender
GetRecommender returns those recommenders that have been registered
func RegisterRecommender ¶
func RegisterRecommender(p ResourceRecommender)
RegisterRecommender indicates that all in-tree algorithm implementations should be registered here, so that the main VPA process can walk through those algorithms to produce th final resources.
Types ¶
type ResourceRecommender ¶
type ResourceRecommender interface { Name() string // GetRecommendedPodResources calculate the recommended resources for given SPD GetRecommendedPodResources(spd *workload.ServiceProfileDescriptor, pods []*corev1.Pod) ( []apis.RecommendedPodResources, []apis.RecommendedContainerResources, error) }
ResourceRecommender is used as a common interface for in-tree VPA algorithms; all in-tree implementations should implement those functions defined here.
Click to show internal directories.
Click to hide internal directories.