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.
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
Click to show internal directories.
Click to hide internal directories.