agent

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 38 Imported by: 1

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentOptions

type AgentOptions struct {
	RegistrationAgent *spoke.SpokeAgentOptions

	StatusSyncInterval                     time.Duration
	AppliedManifestWorkEvictionGracePeriod time.Duration

	Burst int
	QPS   float32

	KubeConfig  string
	WorkAgentID string
	// contains filtered or unexported fields
}

func NewAgentOptions

func NewAgentOptions() *AgentOptions

func (*AgentOptions) AddFlags

func (o *AgentOptions) AddFlags(fs *pflag.FlagSet)

func (*AgentOptions) RunAgent

func (o *AgentOptions) RunAgent(ctx context.Context) error

func (*AgentOptions) WaitForValidHubKubeConfig

func (o *AgentOptions) WaitForValidHubKubeConfig(ctx context.Context, kubeconfigPath string) error

func (*AgentOptions) WithBootstrapKubeconfig

func (o *AgentOptions) WithBootstrapKubeconfig(bootstrapKubeconfig string) *AgentOptions

func (*AgentOptions) WithClusterName

func (o *AgentOptions) WithClusterName(clusterName string) *AgentOptions

func (*AgentOptions) WithHubKubeconfigDir

func (o *AgentOptions) WithHubKubeconfigDir(hubKubeconfigDir string) *AgentOptions

func (*AgentOptions) WithHubKubeconfigSecreName

func (o *AgentOptions) WithHubKubeconfigSecreName(hubKubeconfigSecreName string) *AgentOptions

func (*AgentOptions) WithKubeconfig

func (o *AgentOptions) WithKubeconfig(kubeConfig string) *AgentOptions

func (*AgentOptions) WithSpokeKubeconfig

func (o *AgentOptions) WithSpokeKubeconfig(spokeKubeConfig string) *AgentOptions

Jump to

Keyboard shortcuts

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