package nodeunschedulable
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeunschedulable"
Index ¶
- Constants
- func New(_ *runtime.Unknown, _ framework.FrameworkHandle) (framework.Plugin, error)
- type NodeUnschedulable
Constants ¶
const ( // ErrReasonUnknownCondition is used for NodeUnknownCondition predicate error. ErrReasonUnknownCondition = "node(s) had unknown conditions" // ErrReasonUnschedulable is used for NodeUnschedulable predicate error. ErrReasonUnschedulable = "node(s) were unschedulable" )
const Name = "NodeUnschedulable"
Name is the name of the plugin used in the plugin registry and configurations.
Functions ¶
func New ¶
New initializes a new plugin and returns it.
Types ¶
type NodeUnschedulable ¶
type NodeUnschedulable struct { }
NodeUnschedulable is a plugin that priorities nodes according to the node annotation "scheduler.alpha.kubernetes.io/preferAvoidPods".
func (*NodeUnschedulable) Filter ¶
func (pl *NodeUnschedulable) Filter(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status
Filter invoked at the filter extension point.
func (*NodeUnschedulable) Name ¶
func (pl *NodeUnschedulable) Name() string
Name returns name of the plugin. It is used in logs, etc.
Source Files ¶
node_unschedulable.go
- Version
- v1.18.0
- Published
- Mar 25, 2020
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 13 seconds ago –
Tools for package owners.