utils

package
v1.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ReconcileErrorDuration   = 10 * time.Minute
	ReconcileSuccessDuration = 1 * time.Minute
)

Variables

View Source
var (
	AppsResources        = []string{"deployments", "statefulsets"}
	HpaResources         = []string{"horizontalpodautoscalers", "hpa", "scaledobjects"}
	ErrMixedAppsHPA      = errors.New("mixing apps and hpa resources is not allowed")
	ErrLoadRestorePeriod = errors.New("unable to load restore period")
	ErrLoadPeriod        = errors.New("unable to load period")
	ErrRunOncePeriod     = errors.New("run once period")
)

Functions

func IgnoreDeletionPredicate

func IgnoreDeletionPredicate() predicate.Predicate

func ValidatePeriod

func ValidatePeriod(periods []*common.ScalerPeriod, status *common.ScalerStatus) (*periodPkg.Period, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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