options

package
v0.0.0-...-1518e46 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LeaseDuration = 15
	RenewDeadline = 10
	RetryPeriod   = 2

	ResourceLock      = "endpointsleases"
	ResourceName      = "kubez-autoscaler-manager"
	ResourceNamespace = "kube-system"

	HealthzHost = "127.0.0.1"
	HealthzPort = "10256"
	PPort       = "6060"
)
View Source
const (
	// KubezControllerManagerUserAgent is the userAgent name when starting kubez-autoscaler managers.
	KubezControllerManagerUserAgent = "pixiu-autoscaler-manager"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ComponentConfig config.PixiuConfiguration

	// ConfigFile is the location of the autoscaler's configuration file.
	ConfigFile string

	Master string
}

Options has all the params needed to run a Autoscaler

func NewOptions

func NewOptions() (*Options, error)

func (*Options) BindFlags

func (o *Options) BindFlags(cmd *cobra.Command)

BindFlags binds the KubezConfiguration struct fields

func (*Options) Config

func (o *Options) Config() (*config.PixiuConfiguration, error)

Config return a kubez controller manager config objective

Jump to

Keyboard shortcuts

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