Documentation ¶
Index ¶
- Constants
- func StubAzureCredentialsSecret() *corev1.Secret
- type Actuator
- func (a *Actuator) Create(ctx context.Context, machine *machinev1.Machine) error
- func (a *Actuator) Delete(ctx context.Context, machine *machinev1.Machine) error
- func (a *Actuator) Exists(ctx context.Context, machine *machinev1.Machine) (bool, error)
- func (a *Actuator) Update(ctx context.Context, machine *machinev1.Machine) error
- type ActuatorParams
- type Reconciler
Constants ¶
View Source
const ( // DefaultBootstrapTokenTTL default ttl for bootstrap token DefaultBootstrapTokenTTL = 10 * time.Minute // MachineRegionLabelName as annotation name for a machine region MachineRegionLabelName = "machine.openshift.io/region" // MachineAZLabelName as annotation name for a machine AZ MachineAZLabelName = "machine.openshift.io/zone" // MachineInstanceStateAnnotationName as annotation name for a machine instance state MachineInstanceStateAnnotationName = "machine.openshift.io/instance-state" // MachineInstanceTypeLabelName as annotation name for a machine instance type MachineInstanceTypeLabelName = "machine.openshift.io/instance-type" MachineSetLabelName = "machine.openshift.io/cluster-api-machineset" )
Variables ¶
This section is empty.
Functions ¶
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
NewActuator returns an actuator.
type ActuatorParams ¶
type ActuatorParams struct { CoreClient controllerclient.Client EventRecorder record.EventRecorder ReconcilerBuilder func(scope *actuators.MachineScope) *Reconciler AzureWorkloadIdentityEnabled bool }
ActuatorParams holds parameter information for Actuator.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler are list of services required by cluster actuator, easy to create a fake
func NewReconciler ¶
func NewReconciler(scope *actuators.MachineScope) *Reconciler
NewReconciler populates all the services based on input scope
func (*Reconciler) Create ¶
func (s *Reconciler) Create(ctx context.Context) error
Create creates machine if and only if machine exists, handled by cluster-api
func (*Reconciler) CreateMachine ¶
func (s *Reconciler) CreateMachine(ctx context.Context) error
CreateMachine creates machine if and only if machine exists, handled by cluster-api
func (*Reconciler) Delete ¶
func (s *Reconciler) Delete(ctx context.Context) error
Delete reconciles all the services in pre determined order
Click to show internal directories.
Click to hide internal directories.