emptycandidates

package
v0.0.0-...-3fd892a Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNodeInfoGetter

func NewNodeInfoGetter(c clustersnapshot.ClusterSnapshot) *nodeInfoGetterImpl

NewNodeInfoGetter limits ClusterSnapshot interface to NodeInfoGet() method.

Types

type EmptySorting

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

EmptySorting is sorting scale down candidates so that empty nodes appear first.

func NewEmptySortingProcessor

func NewEmptySortingProcessor(n nodeInfoGetter, deleteOptions options.NodeDeleteOptions, drainabilityRules rules.Rules) *EmptySorting

NewEmptySortingProcessor return EmptySorting struct.

func (*EmptySorting) ScaleDownEarlierThan

func (p *EmptySorting) ScaleDownEarlierThan(node1, node2 *apiv1.Node) bool

ScaleDownEarlierThan return true if node1 is empty and node2 isn't.

Jump to

Keyboard shortcuts

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