spoke

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 18 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
	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.

Jump to

Keyboard shortcuts

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