controllers

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicrovmClusterReconciler

type MicrovmClusterReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	Recorder         record.EventRecorder
	WatchFilterValue string

	RemoteClientGetter remote.ClusterClientGetter
}

MicrovmClusterReconciler reconciles a MicrovmCluster object.

func (*MicrovmClusterReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*MicrovmClusterReconciler) SetupWithManager

func (r *MicrovmClusterReconciler) SetupWithManager(
	ctx context.Context,
	mgr ctrl.Manager,
	options controller.Options,
) error

SetupWithManager sets up the controller with the Manager.

type MicrovmMachineReconciler

type MicrovmMachineReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	Recorder         record.EventRecorder
	WatchFilterValue string

	MvmClientFunc flclient.FactoryFunc
}

MicrovmMachineReconciler reconciles a MicrovmMachine object.

func (*MicrovmMachineReconciler) MicroVMClusterToMicrovmMachine

func (r *MicrovmMachineReconciler) MicroVMClusterToMicrovmMachine(
	ctx context.Context,
	log logr.Logger,
) handler.MapFunc

MicroVMClusterToMicrovmMachine is called when there is a change to a MicrovmCluster (which this controller is watching for changes to, see SetupWithManager). Its job is to identify the MicrovmMachines for the changed MicrovmCluster and queue requests (via controller-runtime) for those machines to be reconciled so that they can take into account any changes that are relevant at the MicrovmCluster level.

func (*MicrovmMachineReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*MicrovmMachineReconciler) SetupWithManager

func (r *MicrovmMachineReconciler) SetupWithManager(
	ctx context.Context,
	mgr ctrl.Manager,
	options controller.Options,
) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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