agent

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 24 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) 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

Jump to

Keyboard shortcuts

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