Documentation
¶
Overview ¶
Package config contains the config for the autoscaler.
Index ¶
Constants ¶
View Source
const (
// ConfigName is the name of the config map of the autoscaler.
ConfigName = "config-autoscaler"
// BucketSize is the size of the buckets of stats we create.
// NB: if this is more than 1s, we need to average values in the
// metrics buckets.
BucketSize = 1 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func NewConfigFromConfigMap ¶
func NewConfigFromConfigMap(configMap *corev1.ConfigMap) (*autoscalerconfig.Config, error)
NewConfigFromConfigMap creates a Config from the supplied ConfigMap
func NewConfigFromMap ¶
func NewConfigFromMap(data map[string]string) (*autoscalerconfig.Config, error)
NewConfigFromMap creates a Config from the supplied map
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package autoscalerconfig contains the config struct for the autoscaler.
|
Package autoscalerconfig contains the config struct for the autoscaler. |
Click to show internal directories.
Click to hide internal directories.