options

package
v0.0.0-...-6a55101 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package options provides the flags used for the controller manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Kubeconfig string

	// minResyncPeriod is the resync period in reflectors; will be random between
	// minResyncPeriod and 2*minResyncPeriod.
	MinResyncPeriod metav1.Duration
	// kubeAPIQPS is the QPS to use while talking with kubernetes apiserver.
	KubeAPIQPS float32
	// kubeAPIBurst is the QPS burst to use while talking with kubernetes apiserver.
	KubeAPIBurst int32
	// ControllerName is name of the NodeSet controller, used to select which NodeSets
	// will be processed by this controller, based on pod's "spec.ControllerName".
	ControllerName string

	// BackendName is the name of the backend to use.
	BackendName string

	// GKEClusterID is the cluster ID for GKE.
	GKEClusterID string

	// GKEClusterZone is the zone of the cluster in GKE
	GKEClusterZone string

	// GKEProjectID is the google project ID
	GKEProjectID string
}

Options is the main context object for the controller manager.

func New

func New() *Options

New creates a new NodeSetControllerServer with a default config.

func (*Options) AddFlags

func (s *Options) AddFlags(fs *pflag.FlagSet)

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

func (*Options) Validate

func (s *Options) Validate() error

Validate is used to validate the options and config before launching.

Jump to

Keyboard shortcuts

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