Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = names.Predictor // DefaultTimeout is the default timeout for a predictor request. DefaultTimeout = time.Second * 20 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Predictor ¶
type Predictor struct {
// contains filtered or unexported fields
}
Predictor is a plugin than checks if a subscription need resources
func (*Predictor) Predict ¶
func (pl *Predictor) Predict( ctx context.Context, _ *framework.CycleState, _ *appsapi.Subscription, finv *appsapi.FeedInventory, mcls *clusterapi.ManagedCluster, ) (feedReplicas framework.FeedReplicas, s *framework.Status)
Predict invoked by scheduler predictor plugin
Click to show internal directories.
Click to hide internal directories.