prescaling

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UPSCALE     int = 11
	NODOWNSCALE int = 10
	DOWNSCALE   int = 9
	NOSCALE     int = 0
)

Variables

This section is empty.

Functions

func DesiredScaling

func DesiredScaling(eventInRangeTime bool, multiplier int, minReplica int, currentReplica int32) int

Types

type Hpa

type Hpa struct {
	Replica         int
	CurrentReplicas int32
	Start           time.Time
	End             time.Time
	Project         string
	Namespace       string
	Deployment      string
}

func (Hpa) Validate

func (p Hpa) Validate() error

type IPrescaling

type IPrescaling interface {
	GetHpa() []Hpa
	GetEventService() services.IPrescalingEventService
}

func NewPrescaling

func NewPrescaling(client *k8s.Client, eventService services.IPrescalingEventService) IPrescaling

type Prescaling

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

func (Prescaling) GetEventService

func (p Prescaling) GetEventService() services.IPrescalingEventService

func (Prescaling) GetHpa

func (p Prescaling) GetHpa() []Hpa

Jump to

Keyboard shortcuts

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