Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Name is the name of the plugin used in the plugin registry and configurations.
Name = "ClusterEviction"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterEviction ¶
type ClusterEviction struct{}
ClusterEviction is a plugin that checks if the target cluster is in the GracefulEvictionTasks which means it is in the process of eviction.
func (*ClusterEviction) Filter ¶
func (p *ClusterEviction) Filter(_ context.Context, bindingSpec *workv1alpha2.ResourceBindingSpec, _ *workv1alpha2.ResourceBindingStatus, cluster *clusterv1alpha1.Cluster) *framework.Result
Filter checks if the target cluster is in the GracefulEvictionTasks which means it is in the process of eviction.
func (*ClusterEviction) Name ¶
func (p *ClusterEviction) Name() string
Name returns the plugin name.
Click to show internal directories.
Click to hide internal directories.