noderesources

package
v0.0.0-...-e2cac0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConflictCheckName is the name of the plugin used in the plugin registry and configurations.
	ConflictCheckName = "NodeResourcesCheck"
)

Variables

This section is empty.

Functions

Types

type ConflictCheck

type ConflictCheck struct {
	// contains filtered or unexported fields
}

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

func (*ConflictCheck) CheckConflicts

func (pl *ConflictCheck) CheckConflicts(_ context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo framework.NodeInfo) *framework.Status

func (*ConflictCheck) Name

func (pl *ConflictCheck) Name() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL