modifiers

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContainsElement

func ArrayContainsElement(el string, arr []string) bool

ArrayContainsElement determines whether array 'arr' contains element 'el'

func GetPairTriggerAndMetric added in v2.13.0

func GetPairTriggerAndMetric(so *kedav1alpha1.ScaledObject, metric string, trigger string) (map[string]string, error)

GetPairTriggerAndMetric adds new pair of trigger-metric to the list for scalingModifiers formula list thats needed to map the metric value to trigger name. This is only ran if scalingModifiers.Formula is defined in SO.

func HandleScalingModifiers

func HandleScalingModifiers(so *kedav1alpha1.ScaledObject, metrics []external_metrics.ExternalMetricValue, metricTriggerList map[string]string, fallbackActive bool, fallbackMetrics []external_metrics.ExternalMetricValue, cacheObj *cache.ScalersCache, log logr.Logger) []external_metrics.ExternalMetricValue

HandleScalingModifiers is the parent function for scalingModifiers structure. If the structure is defined and conditions are met, apply the formula to manipulate the metrics and return them

Types

This section is empty.

Jump to

Keyboard shortcuts

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