server

package
Version: v0.0.0-...-56e15b1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorOptions

type OperatorOptions struct {
	CloudProvider               string
	CloudConfigFile             string
	IngressClass                string
	OperatorNamespace           string
	OperatorService             string
	RestrictToOperatorNamespace bool
	QPS                         float64
	Burst                       int
	ResyncPeriod                time.Duration
	MaxNumRequeues              int
	NumThreads                  int
	DockerRegistry              string
	HAProxyImageTag             string
	HAProxyImageRepository      string
	ExporterImageTag            string
	ExporterImageRepository     string

	ValidateHAProxyConfig   bool
	EnableValidatingWebhook bool
	LicenseFile             string
	// contains filtered or unexported fields
}

func NewOperatorOptions

func NewOperatorOptions() *OperatorOptions

func (*OperatorOptions) AddFlags

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

func (*OperatorOptions) AddGoFlags

func (s *OperatorOptions) AddGoFlags(fs *flag.FlagSet)

func (*OperatorOptions) ApplyTo

func (s *OperatorOptions) ApplyTo(cfg *operator.OperatorConfig) error

func (OperatorOptions) ExporterImage

func (s OperatorOptions) ExporterImage() string

func (OperatorOptions) HAProxyImage

func (s OperatorOptions) HAProxyImage() string

func (*OperatorOptions) Validate

func (s *OperatorOptions) Validate() []error

func (OperatorOptions) WatchNamespace

func (s OperatorOptions) WatchNamespace() string

type VoyagerOptions

type VoyagerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	OperatorOptions    *OperatorOptions

	StdOut io.Writer
	StdErr io.Writer
}

func NewVoyagerOptions

func NewVoyagerOptions(out, errOut io.Writer) *VoyagerOptions

func (*VoyagerOptions) AddFlags

func (o *VoyagerOptions) AddFlags(fs *pflag.FlagSet)

func (*VoyagerOptions) Complete

func (o *VoyagerOptions) Complete() error

func (VoyagerOptions) Config

func (o VoyagerOptions) Config() (*server.VoyagerConfig, error)

func (VoyagerOptions) Run

func (o VoyagerOptions) Run(stopCh <-chan struct{}) error

func (VoyagerOptions) Validate

func (o VoyagerOptions) Validate(args []string) error

Jump to

Keyboard shortcuts

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