nodegroupconfig

package
v0.0.0-...-4c37ff3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelegatingNodeGroupConfigProcessor

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

DelegatingNodeGroupConfigProcessor calls NodeGroup.GetOptions to get config for each NodeGroup. If NodeGroup doesn't return a value default config is used instead.

func (*DelegatingNodeGroupConfigProcessor) CleanUp

CleanUp cleans up processor's internal structures.

func (*DelegatingNodeGroupConfigProcessor) GetIgnoreDaemonSetsUtilization

func (p *DelegatingNodeGroupConfigProcessor) GetIgnoreDaemonSetsUtilization(nodeGroup cloudprovider.NodeGroup) (bool, error)

GetIgnoreDaemonSetsUtilization returns IgnoreDaemonSetsUtilization value that should be used for a given NodeGroup.

func (*DelegatingNodeGroupConfigProcessor) GetMaxNodeProvisionTime

func (p *DelegatingNodeGroupConfigProcessor) GetMaxNodeProvisionTime(nodeGroup cloudprovider.NodeGroup) (time.Duration, error)

GetMaxNodeProvisionTime returns MaxNodeProvisionTime value that should be used for a given NodeGroup.

func (*DelegatingNodeGroupConfigProcessor) GetScaleDownGpuUtilizationThreshold

func (p *DelegatingNodeGroupConfigProcessor) GetScaleDownGpuUtilizationThreshold(nodeGroup cloudprovider.NodeGroup) (float64, error)

GetScaleDownGpuUtilizationThreshold returns ScaleDownGpuUtilizationThreshold value that should be used for a given NodeGroup.

func (*DelegatingNodeGroupConfigProcessor) GetScaleDownUnneededTime

func (p *DelegatingNodeGroupConfigProcessor) GetScaleDownUnneededTime(nodeGroup cloudprovider.NodeGroup) (time.Duration, error)

GetScaleDownUnneededTime returns ScaleDownUnneededTime value that should be used for a given NodeGroup.

func (*DelegatingNodeGroupConfigProcessor) GetScaleDownUnreadyTime

func (p *DelegatingNodeGroupConfigProcessor) GetScaleDownUnreadyTime(nodeGroup cloudprovider.NodeGroup) (time.Duration, error)

GetScaleDownUnreadyTime returns ScaleDownUnreadyTime value that should be used for a given NodeGroup.

func (*DelegatingNodeGroupConfigProcessor) GetScaleDownUtilizationThreshold

func (p *DelegatingNodeGroupConfigProcessor) GetScaleDownUtilizationThreshold(nodeGroup cloudprovider.NodeGroup) (float64, error)

GetScaleDownUtilizationThreshold returns ScaleDownUtilizationThreshold value that should be used for a given NodeGroup.

type NodeGroupConfigProcessor

type NodeGroupConfigProcessor interface {
	// GetScaleDownUnneededTime returns ScaleDownUnneededTime value that should be used for a given NodeGroup.
	GetScaleDownUnneededTime(nodeGroup cloudprovider.NodeGroup) (time.Duration, error)
	// GetScaleDownUnreadyTime returns ScaleDownUnreadyTime value that should be used for a given NodeGroup.
	GetScaleDownUnreadyTime(nodeGroup cloudprovider.NodeGroup) (time.Duration, error)
	// GetScaleDownUtilizationThreshold returns ScaleDownUtilizationThreshold value that should be used for a given NodeGroup.
	GetScaleDownUtilizationThreshold(nodeGroup cloudprovider.NodeGroup) (float64, error)
	// GetScaleDownGpuUtilizationThreshold returns ScaleDownGpuUtilizationThreshold value that should be used for a given NodeGroup.
	GetScaleDownGpuUtilizationThreshold(nodeGroup cloudprovider.NodeGroup) (float64, error)
	// GetMaxNodeProvisionTime return MaxNodeProvisionTime value that should be used for a given NodeGroup.
	GetMaxNodeProvisionTime(nodeGroup cloudprovider.NodeGroup) (time.Duration, error)
	// GetIgnoreDaemonSetsUtilization returns IgnoreDaemonSetsUtilization value that should be used for a given NodeGroup.
	GetIgnoreDaemonSetsUtilization(nodeGroup cloudprovider.NodeGroup) (bool, error)
	// CleanUp cleans up processor's internal structures.
	CleanUp()
}

NodeGroupConfigProcessor provides config values for a particular NodeGroup.

func NewDefaultNodeGroupConfigProcessor

func NewDefaultNodeGroupConfigProcessor(nodeGroupDefaults config.NodeGroupAutoscalingOptions) NodeGroupConfigProcessor

NewDefaultNodeGroupConfigProcessor returns a default instance of NodeGroupConfigProcessor.

Jump to

Keyboard shortcuts

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