Documentation ¶
Index ¶
- type Actuator
- func (a *Actuator) Create(ctx context.Context, machine *machinev1beta1.Machine) error
- func (a *Actuator) Delete(ctx context.Context, machine *machinev1beta1.Machine) error
- func (a *Actuator) Exists(ctx context.Context, machine *machinev1beta1.Machine) (bool, error)
- func (a *Actuator) Update(ctx context.Context, machine *machinev1beta1.Machine) error
- type ActuatorParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actuator ¶
type Actuator struct {
// contains filtered or unexported fields
}
Actuator is responsible for performing machine reconciliation. It creates, updates, and deletes machines. Currently changing machine spec is not supported. The user data is rendered using Jsonnet with the machine and secret data as context. Machines are automatically spread across server groups on create based on the AntiAffinityKey.
func NewActuator ¶
func NewActuator(params ActuatorParams) *Actuator
NewActuator returns an actuator.
type ActuatorParams ¶
type ActuatorParams struct { K8sClient client.Client DefaultCloudscaleAPIToken string ServerClientFactory func(token string) cloudscale.ServerService ServerGroupClientFactory func(token string) cloudscale.ServerGroupService }
ActuatorParams holds parameter information for Actuator.
Click to show internal directories.
Click to hide internal directories.