Documentation ¶
Index ¶
- Constants
- func SelectorFromProviderSpec(providerspec *machinev1.ProviderSpec) (labels.Selector, error)
- type Actuator
- func (a *Actuator) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) error
- func (a *Actuator) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) error
- func (a *Actuator) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) (bool, error)
- func (a *Actuator) GetIP(cluster *clusterv1.Cluster, machine *machinev1.Machine) (string, error)
- func (a *Actuator) GetKubeConfig(cluster *clusterv1.Cluster, controlPlaneMachine *machinev1.Machine) (string, error)
- func (a *Actuator) Update(ctx context.Context, cluster *clusterv1.Cluster, machine *machinev1.Machine) error
- type ActuatorParams
Constants ¶
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 = "metal3.io/BareMetalHost" )
Variables ¶
This section is empty.
Functions ¶
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.
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 ¶
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
type ActuatorParams ¶
ActuatorParams holds parameter information for Actuator
Click to show internal directories.
Click to hide internal directories.