options

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultResyncPeriod = 12 * time.Hour

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerOption

type ServerOption struct {
	Kubeconfig           string
	MasterURL            string
	Threadiness          int
	PrintVersion         bool
	JSONLogFormat        bool
	EnableGangScheduling bool
	GangSchedulerName    string
	Namespace            string
	MonitoringPort       int
	ResyncPeriod         time.Duration
	InitContainerImage   string
	// QPS indicates the maximum QPS to the master from this client.
	// If it's zero, the created RESTClient will use DefaultQPS: 5
	QPS int
	// Maximum burst for throttle.
	// If it's zero, the created RESTClient will use DefaultBurst: 10.
	Burst int
}

ServerOption is the main context object for the controller manager.

func NewServerOption

func NewServerOption() *ServerOption

NewServerOption creates a new CMServer with a default config.

func (*ServerOption) AddFlags

func (s *ServerOption) AddFlags(fs *flag.FlagSet)

AddFlags adds flags for a specific CMServer to the specified FlagSet.

Jump to

Keyboard shortcuts

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