options

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UserAgent is the userAgent name when starting loadbalancer controller.
	UserAgent = "loadbalancer-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Master      string
	Kubeconfig  string
	HealthzPort int
	Cfg         lbconfig.Configuration
}

Options is the main context object for the admission controller.

func NewOptions

func NewOptions() *Options

NewOptions creates a new AddmissionOptions with a default config.

func (*Options) Config

func (s *Options) Config() (*config.Config, error)

Config return a controller config objective

func (*Options) Flags

func (s *Options) Flags() *pflag.FlagSet

Flags returns flags for admission controller

Jump to

Keyboard shortcuts

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