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.
Click to show internal directories.
Click to hide internal directories.