controller

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceDiscoveryController added in v1.1.0

type DeviceDiscoveryController struct {
	client.Client
	// contains filtered or unexported fields
}

DeviceDiscoveryController periodically reconciles devices on the host, creates CRs for new devices, deletes CRs for absent devices, updates the CR when device's status has changed.

func NewDeviceDiscoveryController added in v1.1.0

func NewDeviceDiscoveryController(client client.Client, deviceDiscovery devicediscovery.DeviceDiscovery, hostUtils host.HostUtils, node string, namespace string) *DeviceDiscoveryController

NewDeviceDiscoveryController creates a new instance of DeviceDiscoveryController with the specified parameters.

func (*DeviceDiscoveryController) Start added in v1.1.0

Start starts the device discovery process by reconciling devices on the host.

It triggers the first reconciliation manually and then runs it periodically based on the deviceDiscoveryReconcileTime interval until the context is done.

type NicConfigurationTemplateReconciler

type NicConfigurationTemplateReconciler struct {
	client.Client
	EventRecorder record.EventRecorder
	Scheme        *runtime.Scheme
}

NicConfigurationTemplateReconciler reconciles a NicConfigurationTemplate object

func (*NicConfigurationTemplateReconciler) Reconcile

Reconcile reconciles the NicConfigurationTemplate object

func (*NicConfigurationTemplateReconciler) SetupWithManager

func (r *NicConfigurationTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NicDeviceReconciler

type NicDeviceReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	NodeName      string
	NamespaceName string

	FirmwareManager      firmware.FirmwareManager
	ConfigurationManager configuration.ConfigurationManager
	HostUtils            host.HostUtils
	MaintenanceManager   maintenance.MaintenanceManager

	EventRecorder record.EventRecorder
}

NicDeviceReconciler reconciles a NicDevice object

func (*NicDeviceReconciler) Reconcile

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

Reconcile reconciles the NicConfigurationTemplate object

func (*NicDeviceReconciler) SetupWithManager

func (r *NicDeviceReconciler) SetupWithManager(mgr ctrl.Manager, watchForMaintenance bool) error

SetupWithManager sets up the controller with the Manager.

type NicFirmwareSourceReconciler added in v0.1.18

type NicFirmwareSourceReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	FirmwareProvisioner firmware.FirmwareProvisioner
}

NicFirmwareSourceReconciler reconciles a NicDevice object

func (*NicFirmwareSourceReconciler) Reconcile added in v0.1.18

Reconcile reconciles the NicFirmwareSource object

func (*NicFirmwareSourceReconciler) SetupWithManager added in v0.1.18

func (r *NicFirmwareSourceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NicFirmwareTemplateReconciler added in v0.1.18

type NicFirmwareTemplateReconciler struct {
	client.Client
	EventRecorder record.EventRecorder
	Scheme        *runtime.Scheme
}

NicFirmwareTemplateReconciler reconciles a NicFirmwareTemplate object

func (*NicFirmwareTemplateReconciler) Reconcile added in v0.1.18

Reconcile reconciles the NicFirmwareTemplate object

func (*NicFirmwareTemplateReconciler) SetupWithManager added in v0.1.18

func (r *NicFirmwareTemplateReconciler) SetupWithManager(mgr ctrl.Manager) 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