Documentation ¶
Index ¶
- Constants
- func GetTargetLabelSelector(target *corev1.ObjectReference, scale *v1.Scale, ds *appsv1.DaemonSet) (labels.Selector, error)
- func ResourceToContainerMetricNamer(namespace, apiVersion, workloadKind, workloadName, containerName string, ...) metricnaming.MetricNamer
- func ResourceToWorkloadMetricNamer(target *corev1.ObjectReference, resourceName *corev1.ResourceName, ...) metricnaming.MetricNamer
- type Advisor
- type ReplicasAdvisor
- type ResourceRequestAdvisor
Constants ¶
View Source
const (
DefaultNamespace = "default"
)
Variables ¶
This section is empty.
Functions ¶
func GetTargetLabelSelector ¶ added in v0.3.0
func ResourceToContainerMetricNamer ¶ added in v0.3.0
func ResourceToContainerMetricNamer(namespace, apiVersion, workloadKind, workloadName, containerName string, resourceName corev1.ResourceName, caller string) metricnaming.MetricNamer
func ResourceToWorkloadMetricNamer ¶ added in v0.3.0
func ResourceToWorkloadMetricNamer(target *corev1.ObjectReference, resourceName *corev1.ResourceName, workloadLabelSelector labels.Selector, caller string) metricnaming.MetricNamer
Types ¶
type Advisor ¶
type Advisor interface { // Name return name for current Interface Name() string // Advise analysis and give advice in ProposedRecommendation Advise(proposed *types.ProposedRecommendation) error }
func NewAdvisors ¶
type ReplicasAdvisor ¶ added in v0.5.0
func (*ReplicasAdvisor) Advise ¶ added in v0.5.0
func (a *ReplicasAdvisor) Advise(proposed *types.ProposedRecommendation) error
func (*ReplicasAdvisor) Name ¶ added in v0.5.0
func (a *ReplicasAdvisor) Name() string
type ResourceRequestAdvisor ¶
func (*ResourceRequestAdvisor) Advise ¶
func (a *ResourceRequestAdvisor) Advise(proposed *types.ProposedRecommendation) error
func (*ResourceRequestAdvisor) Name ¶
func (a *ResourceRequestAdvisor) Name() string
Click to show internal directories.
Click to hide internal directories.