controller

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 37 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultScheme

func DefaultScheme() *runtime.Scheme

DefaultScheme returns a scheme with all the types necessary for the Rufio controller.

func NewManager

func NewManager(cfg *rest.Config, opts ctrl.Options, bmcConnectTimeout, powerCheckInterval, inventoryRefreshInterval time.Duration, inventoryCollectionEnabled bool, maxConcurrentReconciles int) (ctrl.Manager, error)

func TaskOwnerIndexFunc

func TaskOwnerIndexFunc(obj client.Object) []string

TaskOwnerIndexFunc is Indexer func which returns the owner name for obj.

Types

type BMCOptions

type BMCOptions struct {
	*bmc.ProviderOptions
	// contains filtered or unexported fields
}

func (BMCOptions) Translate

func (b BMCOptions) Translate(host string) []bmclib.Option

type ClientFunc

type ClientFunc func(ctx context.Context, log logr.Logger, hostIP, username, password string, opts *BMCOptions) (*bmclib.Client, error)

ClientFunc defines a func that returns a bmclib.Client.

func NewClientFunc

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

func (r *JobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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

func (r *JobReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, opts ctrlcontroller.Options) error

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 events.EventRecorder, bmcClient ClientFunc, powerCheckInterval, inventoryRefreshInterval time.Duration, inventoryCollectionEnabled bool) *MachineReconciler

NewMachineReconciler returns a new MachineReconciler. inventoryCollectionEnabled is a fleet-wide kill switch for BMC inventory collection; individual Hardware objects can additionally opt out via disableOutOfBandInventoryAnnotation.

func (*MachineReconciler) Reconcile

func (r *MachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reports on the state of a Machine. It does not change the state of the Machine in any way. Updates the Power status and conditions accordingly.

func (*MachineReconciler) SetupWithManager

func (r *MachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, opts ctrlcontroller.Options) error

SetupWithManager sets up the controller with the Manager. When inventory collection is disabled fleet-wide, the Hardware field index is skipped entirely, so a disabled Machine controller doesn't pay for a Hardware watch/cache it will never use.

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler is a type for managing Workflows.

func NewReconciler

func NewReconciler(c client.Client) *Reconciler

TODO(jacobweinstock): add functional arguments to the signature. TODO(jacobweinstock): write functional argument for customizing the backoff.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, bmcClient ClientFunc, powerCheckInterval, inventoryRefreshInterval time.Duration, inventoryCollectionEnabled bool, opts ctrlcontroller.Options) error

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

func (r *TaskReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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, opts ctrlcontroller.Options) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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