kubernetes: k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeunschedulable Index | Files

package nodeunschedulable

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeunschedulable"


Package Files



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.

func New Uses

func New(_ runtime.Object, _ framework.FrameworkHandle) (framework.Plugin, error)

New initializes a new plugin and returns it.

type NodeUnschedulable Uses

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) Filter Uses

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 Uses

func (pl *NodeUnschedulable) Name() string

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

Package nodeunschedulable imports 5 packages (graph) and is imported by 25 packages. Updated 2020-09-27. Refresh now. Tools for package owners.