Documentation ¶
Index ¶
- Constants
- func New(_ runtime.Object, h framework.Handle) (framework.Plugin, error)
- type TaintToleration
- func (pl *TaintToleration) Filter(ctx context.Context, state *framework.CycleState, sub *appsapi.Subscription, ...) *framework.Status
- func (pl *TaintToleration) Name() string
- func (pl *TaintToleration) NormalizeScore(ctx context.Context, state *framework.CycleState, sub *appsapi.Subscription, ...) *framework.Status
- func (pl *TaintToleration) Score(ctx context.Context, state *framework.CycleState, sub *appsapi.Subscription, ...) (int64, *framework.Status)
- func (pl *TaintToleration) ScoreExtensions() framework.ScoreExtensions
Constants ¶
View Source
const Name = names.TaintToleration
Name is the name of the plugin used in the plugin registry and configurations.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TaintToleration ¶
type TaintToleration struct {
// contains filtered or unexported fields
}
TaintToleration is a plugin that checks if a subscription tolerates a cluster's taints.
func (*TaintToleration) Filter ¶
func (pl *TaintToleration) Filter(ctx context.Context, state *framework.CycleState, sub *appsapi.Subscription, cluster *clusterapi.ManagedCluster) *framework.Status
Filter invoked at the filter extension point.
func (*TaintToleration) Name ¶
func (pl *TaintToleration) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*TaintToleration) NormalizeScore ¶
func (pl *TaintToleration) NormalizeScore(ctx context.Context, state *framework.CycleState, sub *appsapi.Subscription, scores framework.ClusterScoreList) *framework.Status
NormalizeScore invoked after scoring all clusters.
func (*TaintToleration) Score ¶
func (pl *TaintToleration) Score(ctx context.Context, state *framework.CycleState, sub *appsapi.Subscription, namespacedCluster string) (int64, *framework.Status)
Score invoked at the Score extension point.
func (*TaintToleration) ScoreExtensions ¶
func (pl *TaintToleration) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.