capi

package
v0.0.0-...-997eeb3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package capi manages CAPI installation, provides default client for CAPI CRDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager installs and controls cluster API installation.

func NewManager

func NewManager(ctx context.Context, cluster talos.Cluster, options Options) (*Manager, error)

NewManager creates new Manager object.

func (*Manager) GetKubeconfig

func (clusterAPI *Manager) GetKubeconfig(ctx context.Context) (client.Kubeconfig, error)

GetKubeconfig returns kubeconfig in clusterctl expected format.

func (*Manager) GetManagerClient

func (clusterAPI *Manager) GetManagerClient() client.Client

GetManagerClient client returns instance of cluster API client.

func (*Manager) GetMetalClient

func (clusterAPI *Manager) GetMetalClient(ctx context.Context) (runtimeclient.Client, error)

GetMetalClient returns k8s client stuffed with CAPI CRDs.

func (*Manager) Install

func (clusterAPI *Manager) Install(ctx context.Context) error

Install the Manager components and wait for them to be ready.

type Options

type Options struct {
	BootstrapProviders      []string
	InfrastructureProviders []string
	ControlPlaneProviders   []string
}

Options for the CAPI installer.

Jump to

Keyboard shortcuts

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