agent

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	SecureServing *apiserver.SecureServingInfo

	// Identity is the unique string identifying a lease holder across
	// all participants in an election.
	Identity string

	// ClusterID denotes current child cluster id
	ClusterID *types.UID

	// dedicated namespace in parent cluster for current child cluster
	DedicatedNamespace *string
	// contains filtered or unexported fields
}

Agent defines configuration for clusternet-agent

func NewAgent

func NewAgent(opts *options.AgentOptions) (*Agent, error)

NewAgent returns a new Agent.

func (*Agent) Run

func (agent *Agent) Run(ctx context.Context) error

type Manager

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

func NewStatusManager

func NewStatusManager(
	apiserverURL string,
	opts *options.AgentOptions,
	kubeClient kubernetes.Interface,
	metricClient *metricsv.Clientset,
	kubeInformerFactory informers.SharedInformerFactory,
) *Manager

func (*Manager) Run

func (mgr *Manager) Run(ctx context.Context, parentDedicatedKubeConfig *rest.Config, dedicatedNamespace *string, clusterID *types.UID)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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