nodepreferavoidpods

package
v1.22.17 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

This plugin has been deprecated and is only configurable through the scheduler policy API and the v1beta1 component config API. It is recommended to use node taints instead.

Index

Constants

Name is the name of the plugin used in the plugin registry and configurations.

Variables

This section is empty.

Functions

func New

New initializes a new plugin and returns it.

Types

type NodePreferAvoidPods

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

NodePreferAvoidPods is a plugin that priorities nodes according to the node annotation "scheduler.alpha.kubernetes.io/preferAvoidPods".

func (*NodePreferAvoidPods) Name

func (pl *NodePreferAvoidPods) Name() string

Name returns name of the plugin. It is used in logs, etc.

func (*NodePreferAvoidPods) Score

func (pl *NodePreferAvoidPods) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)

Score invoked at the score extension point.

func (*NodePreferAvoidPods) ScoreExtensions

func (pl *NodePreferAvoidPods) ScoreExtensions() framework.ScoreExtensions

ScoreExtensions of the Score plugin.

Jump to

Keyboard shortcuts

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