machine

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

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.

func (*Actuator) Create

func (a *Actuator) Create(ctx context.Context, machine *machinev1beta1.Machine) error

Create creates a machine and is invoked by the machine controller.

func (*Actuator) Delete

func (a *Actuator) Delete(ctx context.Context, machine *machinev1beta1.Machine) error

func (*Actuator) Exists

func (a *Actuator) Exists(ctx context.Context, machine *machinev1beta1.Machine) (bool, error)

func (*Actuator) Update

func (a *Actuator) Update(ctx context.Context, machine *machinev1beta1.Machine) error

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.

Directories

Path Synopsis
Package csmock is a generated GoMock package.
Package csmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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