Documentation ¶
Index ¶
- Constants
- func New(_ *runtime.Unknown, h framework.FrameworkHandle) (framework.Plugin, error)
- type PodTopologySpread
- func (pl *PodTopologySpread) Filter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, ...) *framework.Status
- func (pl *PodTopologySpread) Name() string
- func (pl *PodTopologySpread) NormalizeScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, ...) *framework.Status
- func (pl *PodTopologySpread) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
- func (pl *PodTopologySpread) ScoreExtensions() framework.ScoreExtensions
Constants ¶
View Source
const Name = "PodTopologySpread"
Name is the name of the plugin used in the plugin registry and configurations.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PodTopologySpread ¶
type PodTopologySpread struct {
// contains filtered or unexported fields
}
PodTopologySpread is a plugin that ensures pod's topologySpreadConstraints is satisfied.
func (*PodTopologySpread) Filter ¶
func (pl *PodTopologySpread) Filter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status
Filter invoked at the filter extension point.
func (*PodTopologySpread) Name ¶
func (pl *PodTopologySpread) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*PodTopologySpread) NormalizeScore ¶
func (pl *PodTopologySpread) NormalizeScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, scores framework.NodeScoreList) *framework.Status
NormalizeScore invoked after scoring all nodes.
func (*PodTopologySpread) Score ¶
func (pl *PodTopologySpread) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
Score invoked at the Score extension point. The "score" returned in this function is the matching number of pods on the `nodeName`, it is normalized later.
func (*PodTopologySpread) ScoreExtensions ¶
func (pl *PodTopologySpread) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.