Documentation ¶
Index ¶
- type MicrovmClusterReconciler
- type MicrovmMachineReconciler
- func (r *MicrovmMachineReconciler) MicroVMClusterToMicrovmMachine(ctx context.Context, log logr.Logger) handler.MapFunc
- func (r *MicrovmMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *MicrovmMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
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 ¶
func (r *MicrovmClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (r *MicrovmMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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.