options

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	cmdoptions.Options
	MetricsAddr             string
	ProbeAddr               string
	EnableLeaderElection    bool
	EnableWebHook           bool
	LeaderElectionNamespace string
	IPPoolsNamespace        string
}

Options holds command line options for controller

func New

func New() *Options

New initialize and return new Options object

func (*Options) AddNamedFlagSets

func (o *Options) AddNamedFlagSets(sharedFS *cliflag.NamedFlagSets)

AddNamedFlagSets register flags for common options in NamedFlagSets

func (*Options) Validate

func (o *Options) Validate() error

Validate registered options

Jump to

Keyboard shortcuts

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