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 ¶
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) NewControllerCommandConfig ¶ added in v0.12.0
func (o *Options) NewControllerCommandConfig( componentName string, version version.Info, startFunc controllercmd.StartFunc) *controllercmd.ControllerCommandConfig
Click to show internal directories.
Click to hide internal directories.