Documentation ¶
Index ¶
- Constants
- func New() framework.Plugin
- type ClusterAffinity
- func (p *ClusterAffinity) Filter(ctx context.Context, placement *v1alpha1.Placement, cluster *cluster.Cluster) *framework.Result
- func (p *ClusterAffinity) Name() string
- func (p *ClusterAffinity) 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 = "ClusterAffinity"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterAffinity ¶
type ClusterAffinity struct{}
ClusterAffinity is a plugin that checks if a resource selector matches the cluster label.
func (*ClusterAffinity) Filter ¶
func (p *ClusterAffinity) Filter(ctx context.Context, placement *v1alpha1.Placement, cluster *cluster.Cluster) *framework.Result
Filter checks if the cluster matched the placement cluster affinity constraint.
func (*ClusterAffinity) Name ¶
func (p *ClusterAffinity) Name() string
Name returns the plugin name.
Click to show internal directories.
Click to hide internal directories.