spoke

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 21 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
	AgentID                                string
	Burst                                  int
	StatusSyncInterval                     time.Duration
	AppliedManifestWorkEvictionGracePeriod time.Duration
	QPS                                    float32
}

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.

Directories

Path Synopsis
cache
Package cache implements a ManifestWork Executor Validator with caching capabilities.
Package cache implements a ManifestWork Executor Validator with caching capabilities.

Jump to

Keyboard shortcuts

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