operator

package
v4.2.720+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

Alameda Operator

Alameda Operator manages the list of pods that need resource predicting, resource recommendating and pod autoscaling.

Requirements for development

Notes

Run make generate when add/modify types under pkg/apis which types are needed to serialize/deserialize a Kubernetes to/from YAML or JSON.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log     *log.Config     `mapstructure:"log"`
	Datahub *datahub.Config `mapstructure:"datahub"`
	Manager manager.Manager

	Kafka      *kafka.Config `mapstructure:"kafka"`
	Prometheus *Prometheus   `mapstructure:"prometheus"`
}

Config defines configurations

func NewConfig

func NewConfig(manager manager.Manager) Config

NewConfig returns Config objecdt

func NewConfigWithoutMgr added in v0.3.8

func NewConfigWithoutMgr() Config

func (Config) Validate

func (c Config) Validate() error

type Prometheus added in v0.9.166

type Prometheus struct {
	prometheus.Config `mapstructure:",squash"`
	RequiredMetrics   []string `mapstructure:"requiredMetrics"`
}

Prometheus wraps Prometheus config and add addition configurations for Alameda Operator

func NewDefaultPrometheus added in v0.9.166

func NewDefaultPrometheus() Prometheus

Jump to

Keyboard shortcuts

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