registration

package
v1.0.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentInstallOptions

type AgentInstallOptions struct {
	Install     bool // If true, install the agent
	ChartPath   string
	ChartValues string
}

Options for installing agents (cert-agent, enterprise-agent)

type Registrant

type Registrant struct {
	*RegistrantOptions
}

func NewRegistrant

func NewRegistrant(opts *RegistrantOptions) (*Registrant, error)

func (*Registrant) DeregisterCluster

func (r *Registrant) DeregisterCluster(ctx context.Context) error

func (*Registrant) RegisterCluster

func (r *Registrant) RegisterCluster(ctx context.Context) error

type RegistrantOptions

type RegistrantOptions struct {
	KubeConfigPath     string
	MgmtContext        string
	RemoteContext      string
	Registration       register.RegistrationOptions
	AgentCrdsChartPath string
	CertAgent          AgentInstallOptions
	EnterpriseAgent    AgentInstallOptions
	Verbose            bool
}

func (*RegistrantOptions) ConstructClientConfigs

func (m *RegistrantOptions) ConstructClientConfigs() (mgmtKubeCfg clientcmd.ClientConfig, remoteKubeCfg clientcmd.ClientConfig, err error)

Initialize a ClientConfig for the management and remote clusters from the options.

Jump to

Keyboard shortcuts

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