options

package
v0.0.0-...-215afb5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KStoneEtcdOperatorUserAgent is the userAgent name when starting kstone-etcd-operator.
	KStoneEtcdOperatorUserAgent = "kstone-etcd-operator"
	ServerName                  = "kstone-etcd-operator"
)

Variables

This section is empty.

Functions

func NewDefaultGenericConfig

func NewDefaultGenericConfig() cmcfg.GenericControllerManagerConfiguration

NewDefaultGenericConfig returns kube-controller manager configuration object.

func NewDefaultSecureServingOptions

func NewDefaultSecureServingOptions(serverName string, defaultPort int) *apiserveroptions.SecureServingOptions

Types

type EtcdClusterOptions

type EtcdClusterOptions struct {
	*etcdclusterconfig.EtcdClusterControllerConfiguration
}

EtcdClusterOptions holds the EtcdClusterController options

func NewEtcdClusterControllerOptions

func NewEtcdClusterControllerOptions() *EtcdClusterOptions

NewEtcdClusterControllerOptions creates a new Options with a default config.

func (*EtcdClusterOptions) AddFlags

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

AddFlags adds flags related to EtcdClusterController for etcd cluster controller to the specified FlagSet.

func (*EtcdClusterOptions) ApplyTo

ApplyTo fills up EtcdClusterController config with options.

func (*EtcdClusterOptions) Validate

func (o *EtcdClusterOptions) Validate() []error

Validate checks validation of EtcdClusterOptions.

type Options

type Options struct {
	SecureServing         *apiserveroptions.SecureServingOptions
	Generic               *controlleroptions.GenericControllerManagerConfigurationOptions
	Metrics               *metrics.Options
	Logs                  *logs.Options
	Master                string
	Kubeconfig            string
	EtcdClusterController *EtcdClusterOptions
}

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

func NewKStoneEtcdOperatorOptions

func NewKStoneEtcdOperatorOptions() *Options

NewKStoneEtcdOperatorOptions creates a new Options with a default config.

func (*Options) ApplyTo

func (o *Options) ApplyTo(c *config.Config) error

func (Options) Config

func (o Options) Config(allControllers []string, disabledByDefaultControllers []string) (*config.Config, error)

func (*Options) Flags

func (o *Options) Flags(allControllers []string, disabledByDefaultControllers []string) cliflag.NamedFlagSets

Flags returns flags for a specific app by section name

func (*Options) Validate

func (o *Options) Validate(allControllers []string, disabledByDefaultControllers []string) error

Jump to

Keyboard shortcuts

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