package defaultpreemption
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/defaultpreemption"
Index ¶
- Constants
- func New(_ runtime.Object, fh framework.FrameworkHandle) (framework.Plugin, error)
- type DefaultPreemption
Constants ¶
const ( // Name of the plugin used in the plugin registry and configurations. Name = "DefaultPreemption" )
Functions ¶
func New ¶
New initializes a new plugin and returns it.
Types ¶
type DefaultPreemption ¶
type DefaultPreemption struct {
// contains filtered or unexported fields
}
DefaultPreemption is a PostFilter plugin implements the preemption logic.
func (*DefaultPreemption) Name ¶
func (pl *DefaultPreemption) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*DefaultPreemption) PostFilter ¶
func (pl *DefaultPreemption) PostFilter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, m framework.NodeToStatusMap) (*framework.PostFilterResult, *framework.Status)
PostFilter invoked at the postFilter extension point.
Source Files ¶
default_preemption.go
- Version
- v1.19.0-rc.0
- Published
- Jul 9, 2020
- Platform
- js/wasm
- Imports
- 20 packages
- Last checked
- 8 minutes ago –
Tools for package owners.