idlenode

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

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 (*IdleNodeRecommender) Filter

Filter out k8s resources that are not supported by the recommender.

func (*IdleNodeRecommender) Name

func (inr *IdleNodeRecommender) Name() string

func (*IdleNodeRecommender) Observe

Observe enhance the observability.

func (*IdleNodeRecommender) Policy

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL