Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterScaleInNodeSelector ¶
type ClusterScaleInNodeSelector interface { // Name returns the name of the node selector strategy. Name() string // Select is used to filter the passed node list, and select an appropriate // number of nodes which fit the criteria of the strategy. The return list // is not guaranteed to match the required number, nor include any items if // selection is impossible. The function will never return more nodes than // asked for. Select([]*api.NodeListStub, int) []*api.NodeListStub }
ClusterScaleInNodeSelector is the interface that defines how nodes are selected for termination when performing scale in actions.
func NewSelector ¶
func NewSelector(cfg map[string]string, client *api.Client, log hclog.Logger) (ClusterScaleInNodeSelector, error)
NewSelector takes the user configuration and creates a ClusterScaleInNodeSelector for use. In the event the configuration cannot be understood, an error will be returned.
Click to show internal directories.
Click to hide internal directories.