Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkloadAgentOptions ¶
type WorkloadAgentOptions struct { HubKubeconfigFile string SpokeKubeconfigFile string SpokeClusterName string QPS float32 Burst int StatusSyncInterval time.Duration }
WorkloadAgentOptions defines the flags for workload agent
func NewWorkloadAgentOptions ¶
func NewWorkloadAgentOptions() *WorkloadAgentOptions
NewWorkloadAgentOptions returns the flags with default value set
func (*WorkloadAgentOptions) AddFlags ¶
func (o *WorkloadAgentOptions) AddFlags(cmd *cobra.Command)
AddFlags register and binds the default flags
func (*WorkloadAgentOptions) RunWorkloadAgent ¶
func (o *WorkloadAgentOptions) RunWorkloadAgent(ctx context.Context, controllerContext *controllercmd.ControllerContext) error
RunWorkloadAgent starts the controllers on agent to process work from hub.
Click to show internal directories.
Click to hide internal directories.