kubernetesk8s.io/kubernetes/pkg/scheduler/framework/plugins/noderesources Index | Files

package noderesources

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

Index

Constants

const Name = "NodeResources"

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 NodeResources

type NodeResources struct{}

NodeResources is a plugin that checks if a node has sufficient resources.

func (*NodeResources) Filter

func (pl *NodeResources) Filter(cycleState *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status

Filter invoked at the filter extension point.

func (*NodeResources) Name

func (pl *NodeResources) Name() string

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

Source Files

node_resources.go

Version
v1.17.0-alpha.2
Published
Oct 15, 2019
Platform
js/wasm
Imports
7 packages
Last checked
53 seconds ago

Tools for package owners.