Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWithRemediator ¶
AddWithRemediator creates a new MachineRemediation Controller with remediator and adds it to the Manager. The Manager will set fields on the Controller and start it when the Manager is started.
Types ¶
type ReconcileMachineRemediation ¶
type ReconcileMachineRemediation struct {
// contains filtered or unexported fields
}
ReconcileMachineRemediation reconciles a MachineRemediation object
func (*ReconcileMachineRemediation) Reconcile ¶
func (r *ReconcileMachineRemediation) Reconcile(request reconcile.Request) (reconcile.Result, error)
Reconcile monitors MachineRemediation and apply the remediation strategy in the case when the MachineRemediation was created Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
type Remediator ¶
type Remediator interface { // Reboot the machine. Reboot(context.Context, *mrv1.MachineRemediation) error // Recreate the machine. Recreate(context.Context, *mrv1.MachineRemediation) error }
Remediator apply machine remediation strategy under a specific infrastructure.