registration

package
v1.0.0-beta11 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 Options added in v1.0.0

type Options struct {
	KubeConfigPath         string
	MgmtContext            string
	MgmtNamespace          string
	RemoteContext          string
	RemoteNamespace        string
	Version                string
	AgentCrdsChartPath     string
	AgentChartPathOverride string
	AgentChartValuesPath   string
	ApiServerAddress       string
	ClusterName            string
	ClusterDomain          string
	Verbose                bool
}

func (Options) ConstructClientConfigs added in v1.0.0

func (o Options) ConstructClientConfigs() (mgmtKubeCfg, remoteKubeCfg clientcmd.ClientConfig, err error)

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

func (Options) GetChartPath added in v1.0.0

func (o Options) GetChartPath(ctx context.Context, override, template string) (string, error)

type Registrant

type Registrant struct {
	Options
	Registration register.RegistrationOptions
}

func NewRegistrant

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

func (*Registrant) DeregisterCluster

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

func (*Registrant) RegisterCluster

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

Jump to

Keyboard shortcuts

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