Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Name is the name of the plugin used in the plugin registry and configurations.
Name = "TaintToleration"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TaintToleration ¶
type TaintToleration struct{}
TaintToleration is a plugin that checks if a propagation policy tolerates a cluster's taints.
func (*TaintToleration) Filter ¶
func (p *TaintToleration) Filter(ctx context.Context, placement *policyv1alpha1.Placement, resource *workv1alpha2.ObjectReference, cluster *clusterv1alpha1.Cluster) *framework.Result
Filter checks if the given tolerations in placement tolerate cluster's taints.
func (*TaintToleration) Name ¶
func (p *TaintToleration) Name() string
Name returns the plugin name.
func (*TaintToleration) Score ¶
func (p *TaintToleration) Score(ctx context.Context, placement *policyv1alpha1.Placement, cluster *clusterv1alpha1.Cluster) (float64, *framework.Result)
Score calculates the score on the candidate cluster.
Click to show internal directories.
Click to hide internal directories.