agent

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package agent provides the agent controller. (fleetagent)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMappers added in v0.3.0

func NewMappers(ctx context.Context, fleetRESTConfig *rest.Config, clientconfig clientcmd.ClientConfig, opts *Options) (meta.RESTMapper, meta.RESTMapper, discovery.CachedDiscoveryInterface, error)

Share mappers across simulators

func Register added in v0.2.0

func Register(ctx context.Context, kubeConfig, namespace, clusterID string) error

Register is only used by simulators to start an agent

func Start

func Start(ctx context.Context, kubeConfig, namespace, agentScope string, opts *Options) error

Start the fleet agent

Types

type Options added in v0.2.0

type Options struct {
	DefaultNamespace string
	ClusterID        string
	NoLeaderElect    bool
	CheckinInterval  time.Duration
	StartAfter       <-chan struct{}
}

Jump to

Keyboard shortcuts

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