options

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentOptions

type AgentOptions struct {
	CommoOpts           *Options
	ComponentNamespace  string
	SpokeKubeconfigFile string
	SpokeClusterName    string
	HubKubeconfigDir    string
	HubKubeconfigFile   string
	AgentID             string
}

AgentOptions is the common agent options

func NewAgentOptions

func NewAgentOptions() *AgentOptions

NewAgentOptions returns the flags with default value set

func (*AgentOptions) AddFlags

func (o *AgentOptions) AddFlags(flags *pflag.FlagSet)

func (*AgentOptions) Complete added in v0.12.0

func (o *AgentOptions) Complete() error

Complete fills in missing values.

func (*AgentOptions) SpokeKubeConfig

func (o *AgentOptions) SpokeKubeConfig(managedRestConfig *rest.Config) (*rest.Config, error)

SpokeKubeConfig builds kubeconfig for the spoke/managed cluster

func (*AgentOptions) Validate

func (o *AgentOptions) Validate() error

type Options added in v0.12.0

type Options struct {
	CmdConfig *controllercmd.ControllerCommandConfig
	Burst     int
	QPS       float32
}

func NewOptions added in v0.12.0

func NewOptions() *Options

NewOptions returns the flags with default value set

func (*Options) AddFlags added in v0.12.0

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

func (*Options) NewControllerCommandConfig added in v0.12.0

func (o *Options) NewControllerCommandConfig(
	componentName string, version version.Info, startFunc controllercmd.StartFunc) *controllercmd.ControllerCommandConfig

Jump to

Keyboard shortcuts

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