Documentation ¶
Index ¶
- func CreateRecommendationObject(recommendationRule *analysisv1alph1.RecommendationRule, ...) *analysisv1alph1.Recommendation
- func GetRecommendationFromIdentity(id ObjectIdentity, currRecommendations analysisv1alph1.RecommendationList) *analysisv1alph1.Recommendation
- func IsConvertFromAnalytics(recommendationRule *analysisv1alph1.RecommendationRule) (bool, string)
- type ObjectIdentity
- type RecommendationController
- func (c *RecommendationController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (c *RecommendationController) SetupWithManager(mgr ctrl.Manager) error
- func (c *RecommendationController) UpdateRecommendation(ctx context.Context, recommendation *analysisapi.Recommendation) (bool, error)
- func (c *RecommendationController) UpdateStatus(ctx context.Context, recommendation *analysisv1alpha1.Recommendation, ...) error
- type RecommendationRuleController
- type RecommendationTriggerController
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) 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
func (c *RecommendationController) UpdateStatus(ctx context.Context, recommendation *analysisv1alpha1.Recommendation, newStatus *analysisv1alpha1.RecommendationStatus) error
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) 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) SetupWithManager ¶ added in v0.10.0
func (c *RecommendationTriggerController) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.