agent

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 32 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 {
	RegistrationAgentOpts *registrationspoke.SpokeAgentOptions
	WorkAgentOpts         *workspoke.WorkloadAgentOptions
	CommonOpts            *commonoptions.AgentOptions

	KubeConfig  string
	WorkAgentID string

	SpokeKubeInformerFactory    informers.SharedInformerFactory
	SpokeClusterInformerFactory clusterv1informers.SharedInformerFactory
	SpokeRestMapper             meta.RESTMapper
	// contains filtered or unexported fields
}

func NewAgentOptions

func NewAgentOptions() *AgentOptions

func (*AgentOptions) AddFlags

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

func (*AgentOptions) RunAddOns added in v0.5.0

func (a *AgentOptions) RunAddOns(ctx context.Context) error

RunAddOns runs the addons in the agent

func (*AgentOptions) RunAgent

func (o *AgentOptions) RunAgent(ctx context.Context) 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

func (*AgentOptions) WithWorkloadSourceDriverConfig added in v0.4.0

func (o *AgentOptions) WithWorkloadSourceDriverConfig(hubKubeConfigFile string) *AgentOptions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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