package nodeunschedulable
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeunschedulable"
Index ¶
- Constants
- func New(_ context.Context, _ runtime.Object, _ framework.Handle, fts feature.Features) (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 = names.NodeUnschedulable
Name is the name of the plugin used in the plugin registry and configurations.
Functions ¶
func New ¶
func New(_ context.Context, _ runtime.Object, _ framework.Handle, fts feature.Features) (framework.Plugin, error)
New initializes a new plugin and returns it.
Types ¶
type NodeUnschedulable ¶
type NodeUnschedulable struct {
// contains filtered or unexported fields
}
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 ¶
func (pl *NodeUnschedulable) EventsToRegister(_ context.Context) ([]framework.ClusterEventWithHint, error)
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.
Source Files ¶
node_unschedulable.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 3 hours ago –
Tools for package owners.