package nodeaffinity
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeaffinity"
Index ¶
- Constants
- func New(_ *runtime.Unknown, _ framework.FrameworkHandle) (framework.Plugin, error)
- type NodeAffinity
Constants ¶
const Name = "NodeAffinity"
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 NodeAffinity ¶
type NodeAffinity struct{}
NodeAffinity is a plugin that checks if a pod node selector matches the node label.
func (*NodeAffinity) Filter ¶
func (pl *NodeAffinity) Filter(_ *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status
Filter invoked at the filter extension point.
func (*NodeAffinity) Name ¶
func (pl *NodeAffinity) Name() string
Name returns name of the plugin. It is used in logs, etc.
Source Files ¶
node_affinity.go
- Version
- v1.17.0-alpha.2
- Published
- Oct 15, 2019
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 3 minutes ago –
Tools for package owners.