autoscaler

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HorizontalController

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

func NewHorizontalController

func NewHorizontalController(
	ctx context.Context,
	mgr ctrl.Manager,
	syncPeriod time.Duration,
	downscaleStabilisationWindow time.Duration,
	tolerance float64,
	cpuInitializationPeriod,
	delayOfInitialReadinessStatus time.Duration,
) (*HorizontalController, error)

NewHorizontalController creates a new HorizontalController.

func (*HorizontalController) Reconcile

func (a *HorizontalController) Reconcile(ctx context.Context, request ctrl.Request) (res reconcile.Result, retErr error)

func (*HorizontalController) SetupWithManager

func (a *HorizontalController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NormalizationArg

type NormalizationArg struct {
	Key               string
	ScaleUpBehavior   *autoscalingv2.HPAScalingRules
	ScaleDownBehavior *autoscalingv2.HPAScalingRules
	MinReplicas       int32
	MaxReplicas       int32
	CurrentReplicas   int32
	DesiredReplicas   int32
}

NormalizationArg is used to pass all needed information between functions as one structure

Jump to

Keyboard shortcuts

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