Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRecommendationProvider ¶
func NewRecommendationProvider(vpaLister vpa_lister.VerticalPodAutoscalerLister) *recommendationProvider
NewRecommendationProvider constructs the recommendation provider that list VPAs and can be used to determine recommendations for pods.
Types ¶
type ContainerResources ¶
type ContainerResources struct {
Requests, Limits v1.ResourceList
}
ContainerResources holds request and limit resources for container
type RecommendationProvider ¶
type RecommendationProvider interface {
GetContainersResourcesForPod(pod *v1.Pod) ([]ContainerResources, error)
}
RecommendationProvider gets current recommendation and limits for the given pod.
Click to show internal directories.
Click to hide internal directories.