Version: v0.0.1 Latest Latest

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 31 Imported by: 0




View Source
const (
	ProviderName = "baremetal"
	// HostAnnotation is the key for an annotation that should go on a Machine to
	// reference what BareMetalHost it corresponds to.
	HostAnnotation = ""


This section is empty.


func SelectorFromProviderSpec

func SelectorFromProviderSpec(providerspec *machinev1.ProviderSpec) (labels.Selector, error)

SelectorFromProviderSpec returns a selector that can be used to determine if a BareMetalHost matches a Machine.


type Actuator

type Actuator struct {
	// contains filtered or unexported fields

Actuator is responsible for performing machine reconciliation

func NewActuator

func NewActuator(params ActuatorParams) (*Actuator, error)

NewActuator creates a new Actuator

func (*Actuator) Create

func (a *Actuator) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.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 *machinev1.Machine) error

Delete deletes a machine and is invoked by the Machine Controller

func (*Actuator) Exists

func (a *Actuator) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) (bool, error)

Exists tests for the existence of a machine and is invoked by the Machine Controller

func (*Actuator) GetIP

func (a *Actuator) GetIP(cluster *clusterv1.Cluster, machine *machinev1.Machine) (string, error)

GetIP returns IP address of the machine in the cluster.

func (*Actuator) GetKubeConfig

func (a *Actuator) GetKubeConfig(cluster *clusterv1.Cluster, controlPlaneMachine *machinev1.Machine) (string, error)

GetKubeConfig gets a kubeconfig from the running control plane.

func (*Actuator) Update

func (a *Actuator) Update(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) error

Update updates a machine and is invoked by the Machine Controller

type ActuatorParams

type ActuatorParams struct {
	Client client.Client

ActuatorParams holds parameter information for Actuator

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL