annotations

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationConfigMap

type AnnotationConfigMap map[MetricConfigKey]*AnnotationConfigs

func (AnnotationConfigMap) GetAnnotationConfig

func (m AnnotationConfigMap) GetAnnotationConfig(metricName string, metricType autoscalingv2.MetricSourceType) (*AnnotationConfigs, bool)

func (AnnotationConfigMap) Parse

func (m AnnotationConfigMap) Parse(annotations map[string]string) error

type AnnotationConfigs

type AnnotationConfigs struct {
	CollectorType  string
	Configs        map[string]string
	PerReplica     bool
	Interval       time.Duration
	MinPodReadyAge time.Duration
}

type MetricConfigKey

type MetricConfigKey struct {
	Type       autoscalingv2.MetricSourceType
	MetricName string
}

Jump to

Keyboard shortcuts

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