options

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureOptions added in v1.3.1

type FeatureOptions struct {
	MonitorStorageType      string
	MonitorStorageAddresses []string
}

func NewFeatureOptions added in v1.3.1

func NewFeatureOptions() *FeatureOptions

func (*FeatureOptions) AddFlags added in v1.3.1

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

func (*FeatureOptions) ApplyFlags added in v1.3.1

func (o *FeatureOptions) ApplyFlags() []error

type Options

type Options struct {
	Log               *log.Options
	Debug             *apiserveroptions.DebugOptions
	SecureServing     *apiserveroptions.SecureServingOptions
	Component         *controlleroptions.ComponentOptions
	MonitorAPIClient  *controlleroptions.APIServerClientOptions
	BusinessAPIClient *controlleroptions.APIServerClientOptions
	PlatformAPIClient *controlleroptions.APIServerClientOptions
	Registry          *apiserveroptions.RegistryOptions
	FeatureOptions    *FeatureOptions
	// The Registry will load its initial configuration from this file.
	// The path may be absolute or relative; relative paths are under the Monitor's current working directory.
	MonitorConfig string
}

Options is the main context object for the TKE controller manager.

func NewOptions

func NewOptions(serverName string, allControllers []string, disabledByDefaultControllers []string) *Options

NewOptions creates a new Options with a default config.

func (*Options) AddFlags

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

AddFlags adds flags for a specific server to the specified FlagSet object.

func (*Options) ApplyFlags

func (o *Options) ApplyFlags() []error

ApplyFlags parsing parameters from the command line or configuration file to the options instance.

Jump to

Keyboard shortcuts

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