Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoscalingProcessors ¶
type AutoscalingProcessors struct { // PodListProcessor is used to process list of unschedulable pods before autoscaling. PodListProcessor pods.PodListProcessor // NodeGroupListProcessor is used to process list of NodeGroups that can be used in scale-up. NodeGroupListProcessor nodegroups.NodeGroupListProcessor // NodeGroupSetProcessor is used to divide scale-up between similar NodeGroups. NodeGroupSetProcessor nodegroupset.NodeGroupSetProcessor // ScaleUpStatusProcessor is used to process the state of the cluster after a scale-up. ScaleUpStatusProcessor status.ScaleUpStatusProcessor // ScaleDownStatusProcessor is used to process the state of the cluster after a scale-down. ScaleDownStatusProcessor status.ScaleDownStatusProcessor // AutoscalingStatusProcessor is used to process the state of the cluster after each autoscaling iteration. AutoscalingStatusProcessor status.AutoscalingStatusProcessor // NodeGroupManager is responsible for creating/deleting node groups. NodeGroupManager nodegroups.NodeGroupManager }
AutoscalingProcessors are a set of customizable processors used for encapsulating various heuristics used in different parts of Cluster Autoscaler code.
func DefaultProcessors ¶
func DefaultProcessors() *AutoscalingProcessors
DefaultProcessors returns default set of processors.
func TestProcessors ¶
func TestProcessors() *AutoscalingProcessors
TestProcessors returns a set of simple processors for use in tests.
func (*AutoscalingProcessors) CleanUp ¶
func (ap *AutoscalingProcessors) CleanUp()
CleanUp cleans up the processors' internal structures.
Click to show internal directories.
Click to hide internal directories.