Documentation ¶
Index ¶
Constants ¶
const ( EventGetPowerStateFailed = "GetPowerStateFailed" EventSetPowerStateFailed = "SetPowerStateFailed" )
Variables ¶
This section is empty.
Functions ¶
func TaskOwnerIndexFunc ¶ added in v0.2.2
TaskOwnerIndexFunc is Indexer func which returns the owner name for obj.
Types ¶
type ClientFunc ¶ added in v0.3.1
type ClientFunc func(ctx context.Context, log logr.Logger, hostIP, port, username, password string) (*bmclib.Client, error)
ClientFunc defines a func that returns a bmclib.Client.
func NewClientFunc ¶ added in v0.3.1
func NewClientFunc(timeout time.Duration) ClientFunc
NewClientFunc returns a new BMCClientFactoryFunc. The timeout parameter determines the maximum time to probe for compatible interfaces.
type JobReconciler ¶
type JobReconciler struct {
// contains filtered or unexported fields
}
JobReconciler reconciles a Job object.
func NewJobReconciler ¶
func NewJobReconciler(c client.Client) *JobReconciler
NewJobReconciler returns a new JobReconciler.
func (*JobReconciler) Reconcile ¶
Reconcile runs a Job. Creates the individual Tasks on the cluster. Watches for Task and creates next Job Task based on conditions.
func (*JobReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type MachineReconciler ¶
type MachineReconciler struct {
// contains filtered or unexported fields
}
MachineReconciler reconciles a Machine object.
func NewMachineReconciler ¶
func NewMachineReconciler(c client.Client, recorder record.EventRecorder, bmcClientFactory ClientFunc) *MachineReconciler
NewMachineReconciler returns a new MachineReconciler.
func (*MachineReconciler) Reconcile ¶
Reconcile ensures the state of a Machine. Gets the Machine object and uses the SecretReference to initialize a BMC Client. Updates the Power status and conditions accordingly.
func (*MachineReconciler) SetupWithManager ¶
func (r *MachineReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type TaskReconciler ¶
type TaskReconciler struct {
// contains filtered or unexported fields
}
TaskReconciler reconciles a Task object.
func NewTaskReconciler ¶
func NewTaskReconciler(c client.Client, bmcClientFactory ClientFunc) *TaskReconciler
NewTaskReconciler returns a new TaskReconciler.
func (*TaskReconciler) Reconcile ¶
Reconcile runs a Task. Establishes a connection to the BMC. Runs the specified action in the Task.
func (*TaskReconciler) SetupWithManager ¶
func (r *TaskReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.