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(ctx context.Context, placement *policyv1alpha1.Placement, resource *workv1alpha2.ObjectReference, 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.