Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Name is the name of the plugin used in the plugin registry and configurations.
Name = "SpreadConstraint"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SpreadConstraint ¶
type SpreadConstraint struct{}
SpreadConstraint is a plugin that checks if spread property in the Cluster.Spec.
func (*SpreadConstraint) Filter ¶
func (p *SpreadConstraint) Filter( _ context.Context, bindingSpec *workv1alpha2.ResourceBindingSpec, _ *workv1alpha2.ResourceBindingStatus, cluster *clusterv1alpha1.Cluster, ) *framework.Result
Filter checks if the cluster Provider/Zone/Region spread is null.
func (*SpreadConstraint) Name ¶
func (p *SpreadConstraint) Name() string
Name returns the plugin name.
Click to show internal directories.
Click to hide internal directories.