machineremediation

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWithRemediator

func AddWithRemediator(mgr manager.Manager, remediator Remediator, opts manager.Options) error

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL