spoke

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 29 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkAgentConfig added in v0.12.0

type WorkAgentConfig struct {
	// contains filtered or unexported fields
}

func NewWorkAgentConfig added in v0.12.0

func NewWorkAgentConfig(commonOpts *options.AgentOptions, opts *WorkloadAgentOptions) *WorkAgentConfig

NewWorkAgentConfig returns a WorkAgentConfig

func (*WorkAgentConfig) RunWorkloadAgent added in v0.12.0

func (o *WorkAgentConfig) RunWorkloadAgent(ctx context.Context, controllerContext *controllercmd.ControllerContext) error

RunWorkloadAgent starts the controllers on agent to process work from hub.

type WorkloadAgentOptions

type WorkloadAgentOptions struct {
	StatusSyncInterval                     time.Duration
	AppliedManifestWorkEvictionGracePeriod time.Duration
	MaxJSONRawLength                       int32
	WorkloadSourceDriver                   string
	WorkloadSourceConfig                   string
	CloudEventsClientID                    string
	CloudEventsClientCodecs                []string
	DefaultUserAgent                       string
}

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(fs *pflag.FlagSet)

AddFlags register and binds the default flags

Directories

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

Jump to

Keyboard shortcuts

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