Documentation ¶
Overview ¶
Package clusteraffinity features a scheduler plugin that enforces cluster affinity (if any) defined on a CRP.
Index ¶
- type Option
- type Plugin
- func (p *Plugin) Filter(_ context.Context, _ framework.CycleStatePluginReadWriter, ...) (status *framework.Status)
- func (p *Plugin) Name() string
- func (p *Plugin) PreFilter(_ context.Context, _ framework.CycleStatePluginReadWriter, ...) (status *framework.Status)
- func (p *Plugin) PreScore(_ context.Context, state framework.CycleStatePluginReadWriter, ...) (status *framework.Status)
- func (p *Plugin) Score(_ context.Context, state framework.CycleStatePluginReadWriter, ...) (score *framework.ClusterScore, status *framework.Status)
- func (p *Plugin) SetUpWithFramework(handle framework.Handle)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a CRP.
func (*Plugin) Filter ¶
func (p *Plugin) Filter( _ context.Context, _ framework.CycleStatePluginReadWriter, ps *placementv1beta1.ClusterSchedulingPolicySnapshot, cluster *clusterv1beta1.MemberCluster, ) (status *framework.Status)
Filter allows the plugin to connect to the Filter extension point in the scheduling framework.
func (*Plugin) PreFilter ¶
func (p *Plugin) PreFilter( _ context.Context, _ framework.CycleStatePluginReadWriter, ps *placementv1beta1.ClusterSchedulingPolicySnapshot, ) (status *framework.Status)
PreFilter allows the plugin to connect to the PreFilter extension point in the scheduling framework.
func (*Plugin) PreScore ¶
func (p *Plugin) PreScore( _ context.Context, state framework.CycleStatePluginReadWriter, policy *placementv1beta1.ClusterSchedulingPolicySnapshot, ) (status *framework.Status)
PreScore allows the plugin to connect to the PreScore extension point in the scheduling framework.
func (*Plugin) Score ¶
func (p *Plugin) Score( _ context.Context, state framework.CycleStatePluginReadWriter, policy *placementv1beta1.ClusterSchedulingPolicySnapshot, cluster *clusterv1beta1.MemberCluster, ) (score *framework.ClusterScore, status *framework.Status)
Score allows the plugin to connect to the Score extension point in the scheduling framework.
func (*Plugin) SetUpWithFramework ¶
SetUpWithFramework sets up this plugin with a scheduler framework.