spoke

package
v0.0.0-...-b86876b Latest Latest
Warning

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

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

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
	SpokeClusterName  string
	QPS               float32
	Burst             int
}

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.

Jump to

Keyboard shortcuts

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