Documentation ¶
Index ¶
- Constants
- func New() framework.Plugin
- type TaintToleration
- func (p *TaintToleration) Filter(ctx context.Context, placement *v1alpha1.Placement, cluster *cluster.Cluster) *framework.Result
- func (p *TaintToleration) Name() string
- func (p *TaintToleration) Score(ctx context.Context, placement *v1alpha1.Placement, cluster *cluster.Cluster) (float64, *framework.Result)
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 *v1alpha1.Placement, cluster *cluster.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.
Click to show internal directories.
Click to hide internal directories.