Documentation ¶
Overview ¶
Package capi manages CAPI installation, provides default client for CAPI CRDs.
Index ¶
- func CheckClusterReady(ctx context.Context, metalClient client.Client, clusterName string) error
- func GetMetalClient(config *rest.Config) (runtimeclient.Client, error)
- type Cluster
- type Manager
- func (clusterAPI *Manager) GetKubeconfig(ctx context.Context) (client.Kubeconfig, error)
- func (clusterAPI *Manager) GetManagerClient() client.Client
- func (clusterAPI *Manager) GetMetalClient(ctx context.Context) (runtimeclient.Client, error)
- func (clusterAPI *Manager) Install(ctx context.Context) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckClusterReady ¶
CheckClusterReady verifies that cluster ready from the CAPI point of view.
func GetMetalClient ¶
func GetMetalClient(config *rest.Config) (runtimeclient.Client, error)
GetMetalClient builds k8s client with schemes required to access all the CAPI/Sidero/Talos components.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster attaches to the provisioned CAPI cluster and provides talos.Cluster.
func NewCluster ¶
func NewCluster(ctx context.Context, metalClient runtimeclient.Reader, clusterName string, bridgeIP netip.Addr) (*Cluster, error)
NewCluster fetches cluster info from the CAPI state.
func (*Cluster) KubernetesClient ¶
func (cluster *Cluster) KubernetesClient() taloscluster.K8sProvider
KubernetesClient provides K8s client source.
func (*Cluster) SideroComponentsIP ¶
SideroComponentsIP returns the IP for the Sidero components (TFTP, iPXE, etc.).
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager installs and controls cluster API installation.
func NewManager ¶
NewManager creates new Manager object.
func (*Manager) GetKubeconfig ¶
GetKubeconfig returns kubeconfig in clusterctl expected format.
func (*Manager) GetManagerClient ¶
GetManagerClient client returns instance of cluster API client.
func (*Manager) GetMetalClient ¶
GetMetalClient returns k8s client stuffed with CAPI CRDs.