Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgentCommand ¶
Types ¶
type AgentOptions ¶
type AgentOptions struct { HubKubeconfigFile string SpokeClusterName string AddonName string AddonNamespace string }
AgentOptions defines the flags for workload agent
func NewAgentOptions ¶
func NewAgentOptions(addonName string) *AgentOptions
NewWorkloadAgentOptions returns the flags with default value set
func (*AgentOptions) AddFlags ¶
func (o *AgentOptions) AddFlags(cmd *cobra.Command)
func (*AgentOptions) RunAgent ¶
func (o *AgentOptions) RunAgent(ctx context.Context, controllerContext *controllercmd.ControllerContext) error
RunAgent starts the controllers on agent to process work from hub.
Click to show internal directories.
Click to hide internal directories.