Documentation
¶
Index ¶
- Constants
- func SelectorFromProviderSpec(providerspec *machinev1beta1.ProviderSpec) (labels.Selector, error)
- 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) GetIP(machine *machinev1beta1.Machine) (string, error)
- func (a *Actuator) GetKubeConfig(controlPlaneMachine *machinev1beta1.Machine) (string, error)
- func (a *Actuator) Update(ctx context.Context, machine *machinev1beta1.Machine) error
- type ActuatorParams
Constants ¶
const ( ProviderName = "baremetal" // HostAnnotation is the key for an annotation that should go on a Machine to // reference what BareMetalHost it corresponds to. HostAnnotation = "metal3.io/BareMetalHost" )
Variables ¶
This section is empty.
Functions ¶
func SelectorFromProviderSpec ¶
func SelectorFromProviderSpec(providerspec *machinev1beta1.ProviderSpec) (labels.Selector, error)
SelectorFromProviderSpec returns a selector that can be used to determine if a BareMetalHost matches a Machine.
Types ¶
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 ¶
Create creates a machine and is invoked by the Machine Controller. This will be called (in preference to Update()) when Exists() returns false, provided that the Machine has not yet reached the Provisioned phase.
func (*Actuator) Exists ¶
Exists tests for the existence of a machine and is invoked by the Machine Controller
func (*Actuator) GetIP ¶
func (a *Actuator) GetIP(machine *machinev1beta1.Machine) (string, error)
GetIP returns IP address of the machine in the cluster.
func (*Actuator) GetKubeConfig ¶
func (a *Actuator) GetKubeConfig(controlPlaneMachine *machinev1beta1.Machine) (string, error)
GetKubeConfig gets a kubeconfig from the running control plane.
type ActuatorParams ¶
ActuatorParams holds parameter information for Actuator