Documentation
¶
Index ¶
- func NewHetznerCloudProvider() cloud.CloudProvider
- type CreateVSwitchResponseBody
- type FailoverIPDetails
- type GetFailoverIPDetailsResponse
- type Hetzner
- func (h *Hetzner) ConnectVSwitchWithHCloudNetwork(ctx context.Context)
- func (h *Hetzner) CreateVSwitch(ctx context.Context)
- func (*Hetzner) GetLatestBackupName(ctx context.Context) string
- func (h *Hetzner) GetVMSpecs(ctx context.Context, machineType string) *cloud.VMSpec
- func (h *Hetzner) PointFailoverIPToInitMasterNode(ctx context.Context)
- func (*Hetzner) SetupDisasterRecovery(ctx context.Context)
- func (*Hetzner) UpdateCapiClusterValuesFileWithCloudSpecificDetails(ctx context.Context, capiClusterValuesFilePath string, _updates any)
- func (*Hetzner) UpdateMachineTemplate(ctx context.Context, clusterClient client.Client, _updates any)
- type ListVSwitchResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHetznerCloudProvider ¶
func NewHetznerCloudProvider() cloud.CloudProvider
Types ¶
type CreateVSwitchResponseBody ¶ added in v0.16.0
type FailoverIPDetails ¶ added in v0.12.0
type FailoverIPDetails struct {
ActiveServerIP string `json:"active_server_ip"`
}
type GetFailoverIPDetailsResponse ¶ added in v0.12.0
type GetFailoverIPDetailsResponse struct {
Failover FailoverIPDetails `json:"failover"`
}
type Hetzner ¶
type Hetzner struct {
// contains filtered or unexported fields
}
func (*Hetzner) ConnectVSwitchWithHCloudNetwork ¶ added in v0.16.0
When using Hetzner Bare Metal, we need to establish private connectivity between the Hetzner Network in HCloud and the Hetzner Bare Metal servers. As of now, CAPH doesn't allow us to use a pre-created HCloud Network. So, we need to sync the capi-cluster ArgoCD App, and wait for CAPH to create the HCloud Network. We can then pick up its ID from the HetznerCluster resource.
func (*Hetzner) CreateVSwitch ¶ added in v0.16.0
A VSwitch is used to establish private connectivity between Hetzner Bare Metal servers (and an HCloud Network, when spinning up a Hetzner hybrid cluster). This function is responsible for creating that VSwitch, if it doesn't already exist.
func (*Hetzner) GetLatestBackupName ¶
func (*Hetzner) GetVMSpecs ¶
func (*Hetzner) PointFailoverIPToInitMasterNode ¶ added in v0.12.0
func (*Hetzner) SetupDisasterRecovery ¶
func (*Hetzner) UpdateCapiClusterValuesFileWithCloudSpecificDetails ¶
Click to show internal directories.
Click to hide internal directories.