Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreviousCandidates ¶
type PreviousCandidates struct {
// contains filtered or unexported fields
}
PreviousCandidates is a struct that store scale down candidates from previous loop.
func NewPreviousCandidates ¶
func NewPreviousCandidates() *PreviousCandidates
NewPreviousCandidates return empty PreviousCandidates struct.
func (*PreviousCandidates) ScaleDownEarlierThan ¶
func (p *PreviousCandidates) ScaleDownEarlierThan(node1, node2 *apiv1.Node) bool
ScaleDownEarlierThan return true if node1 is in candidate list and node2 isn't.
func (*PreviousCandidates) UpdateScaleDownCandidates ¶
func (p *PreviousCandidates) UpdateScaleDownCandidates(nodes []*apiv1.Node, now time.Time)
UpdateScaleDownCandidates updates scale down candidates.
Click to show internal directories.
Click to hide internal directories.