recommendation

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: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRecommendationObject added in v0.10.0

func CreateRecommendationObject(recommendationRule *analysisv1alph1.RecommendationRule,
	target corev1.ObjectReference, id ObjectIdentity, recommenderName string) *analysisv1alph1.Recommendation

func GetRecommendationFromIdentity added in v0.11.0

func GetRecommendationFromIdentity(id ObjectIdentity, currRecommendations analysisv1alph1.RecommendationList) *analysisv1alph1.Recommendation

func IsConvertFromAnalytics added in v0.10.1

func IsConvertFromAnalytics(recommendationRule *analysisv1alph1.RecommendationRule) (bool, string)

Types

type ObjectIdentity added in v0.7.0

type ObjectIdentity struct {
	Namespace      string
	APIVersion     string
	Kind           string
	Name           string
	Labels         map[string]string
	Recommender    string
	Object         unstructuredv1.Unstructured
	Recommendation *analysisv1alph1.Recommendation
}

func (ObjectIdentity) GetObjectReference added in v0.7.0

func (id ObjectIdentity) GetObjectReference() corev1.ObjectReference

type RecommendationController added in v0.7.0

type RecommendationController struct {
	client.Client
	ConfigSet      *analysisv1alpha1.ConfigSet
	Scheme         *runtime.Scheme
	Recorder       record.EventRecorder
	RestMapper     meta.RESTMapper
	RecommenderMgr recommender.RecommenderManager
	ScaleClient    scale.ScalesGetter
	PredictorMgr   predictormgr.Manager
	Provider       providers.History
}

RecommendationController is responsible for reconcile Recommendation

func (*RecommendationController) Reconcile added in v0.7.0

func (*RecommendationController) SetupWithManager added in v0.7.0

func (c *RecommendationController) SetupWithManager(mgr ctrl.Manager) error

func (*RecommendationController) UpdateRecommendation added in v0.7.0

func (c *RecommendationController) UpdateRecommendation(ctx context.Context, recommendation *analysisapi.Recommendation) (bool, error)

func (*RecommendationController) UpdateStatus added in v0.7.0

type RecommendationRuleController added in v0.7.0

type RecommendationRuleController struct {
	client.Client
	Scheme         *runtime.Scheme
	Recorder       record.EventRecorder
	RestMapper     meta.RESTMapper
	ScaleClient    scale.ScalesGetter
	OOMRecorder    oom.Recorder
	RecommenderMgr recommender.RecommenderManager
	PredictorMgr   predictormgr.Manager

	Provider providers.History
	// contains filtered or unexported fields
}

func (*RecommendationRuleController) Reconcile added in v0.7.0

func (*RecommendationRuleController) SetupWithManager added in v0.7.0

func (c *RecommendationRuleController) SetupWithManager(mgr ctrl.Manager) error

type RecommendationTriggerController added in v0.10.0

type RecommendationTriggerController struct {
	client.Client
	Recorder       record.EventRecorder
	RecommenderMgr recommender.RecommenderManager
	ScaleClient    scale.ScalesGetter
	OOMRecorder    oom.Recorder

	PredictorMgr predictormgr.Manager
	Provider     providers.History
	// contains filtered or unexported fields
}

RecommendationTriggerController is responsible for trigger a recommendation

func (*RecommendationTriggerController) Reconcile added in v0.10.0

func (*RecommendationTriggerController) SetupWithManager added in v0.10.0

func (c *RecommendationTriggerController) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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