topologyspreadconstraints

package
v0.9.0-branch-757 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package topologyspreadconstraints features a scheduler plugin that enforces the topology spread constraints (if any) defined on a CRP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*topologySpreadConstraintsPluginOptions)

func WithName

func WithName(name string) Option

WithName sets the name of the plugin.

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin is the scheduler plugin that enforces the topology spread constraints (if any) defined on a CRP.

func New

func New(opts ...Option) Plugin

New returns a new Plugin.

func (*Plugin) Filter

Filter allows the plugin to connect to the Filter extension point in the scheduling framework.

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns the name of the plugin.

func (*Plugin) PostBatch

PostBatch allows the plugin to connect to the PostBatch extension point in the scheduling framework.

Note that the scheduler will not run this extension point in parallel.

func (*Plugin) PreFilter

PreFilter allows the plugin to connect to the PreFilter extension point in the scheduling framework.

Note that the scheduler will not run this extension point in parallel.

func (*Plugin) PreScore

PreScore allows the plugin to connect to the PreScore extension point in the scheduling framework.

func (*Plugin) Score

Score allows the plugin to connect to the Score extension point in the scheduling framework.

func (*Plugin) SetUpWithFramework

func (p *Plugin) SetUpWithFramework(handle framework.Handle)

SetUpWithFramework sets up this plugin with a scheduler framework.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL