Documentation ¶
Index ¶
Constants ¶
View Source
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" )
View Source
const Name = "NodeUnschedulable"
Name is the name of the plugin used in the plugin registry and configurations.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NodeUnschedulable ¶
type NodeUnschedulable struct { }
NodeUnschedulable plugin filters nodes that set node.Spec.Unschedulable=true unless the pod tolerates {key=node.kubernetes.io/unschedulable, effect:NoSchedule} taint.
func (*NodeUnschedulable) EventsToRegister ¶ added in v1.22.0
func (pl *NodeUnschedulable) EventsToRegister() []framework.ClusterEvent
EventsToRegister returns the possible events that may make a Pod failed by this plugin schedulable.
func (*NodeUnschedulable) Filter ¶
func (pl *NodeUnschedulable) Filter(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, nodeInfo *framework.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.
Click to show internal directories.
Click to hide internal directories.