Documentation ¶
Index ¶
- Constants
- func GetSSHClient(host string, privatekey string) (*ssh.Client, error)
- type Actuator
- func (a *Actuator) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
- func (a *Actuator) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
- func (a *Actuator) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error)
- func (a *Actuator) Update(ctx context.Context, cluster *clusterv1.Cluster, ...) error
- type ActuatorParams
Constants ¶
const ( // ProviderName is the default name of the cloud provider used. ProviderName = "azure" // SSHUser is the default ssh username. SSHUser = "ClusterAPI" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actuator ¶
Actuator is responsible for performing machine reconciliation.
func NewActuator ¶
func NewActuator(params ActuatorParams) *Actuator
NewActuator returns an actuator.
func (*Actuator) Create ¶
func (a *Actuator) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
Create creates a machine and is invoked by the machine controller.
func (*Actuator) Delete ¶
func (a *Actuator) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
Delete an existing machine based on the cluster and machine spec passed. Will block until the machine has been successfully deleted, or an error is returned.
func (*Actuator) Exists ¶
func (a *Actuator) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error)
Exists test for the existence of a machine and is invoked by the Machine Controller
func (*Actuator) Update ¶
func (a *Actuator) Update(ctx context.Context, cluster *clusterv1.Cluster, goalMachine *clusterv1.Machine) error
Update updates a machine and is invoked by the Machine Controller. If the Update attempts to mutate any immutable state, the method will error and no updates will be performed.
type ActuatorParams ¶
type ActuatorParams struct {
Client client.ClusterV1alpha1Interface
}
ActuatorParams contains the parameters that are used to create a machine actuator. These are not indicative of all requirements for a machine actuator, environment variables are also necessary.