options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerOption

type ServerOption struct {
	KubeConfig 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
	// Pod in the backoffQ init duration
	PodInitialBackoffSeconds int
	// Pod in the backoffQ max duration
	PodMaxBackoffSeconds int
}

ServerOption is the main context object for the queue controller.

func NewServerOption

func NewServerOption() *ServerOption

func (*ServerOption) AddFlags

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

Jump to

Keyboard shortcuts

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