controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package controller contains the main reconciliation logic for this application. the controllers make sure to perform actions according to the state of the resource, which is being watched.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IonosCloudClusterReconciler

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

IonosCloudClusterReconciler reconciles a IonosCloudCluster object.

func NewIonosCloudClusterReconciler

func NewIonosCloudClusterReconciler(mgr ctrl.Manager) *IonosCloudClusterReconciler

NewIonosCloudClusterReconciler creates a new IonosCloudClusterReconciler.

func (*IonosCloudClusterReconciler) Reconcile

func (r *IonosCloudClusterReconciler) Reconcile(
	ctx context.Context,
	ionosCloudCluster *infrav1.IonosCloudCluster,
) (_ ctrl.Result, retErr 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.16.0/pkg/reconcile

func (*IonosCloudClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type IonosCloudMachineReconciler

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

IonosCloudMachineReconciler reconciles a IonosCloudMachine object.

func NewIonosCloudMachineReconciler

func NewIonosCloudMachineReconciler(mgr ctrl.Manager) *IonosCloudMachineReconciler

NewIonosCloudMachineReconciler creates a new IonosCloudMachineReconciler.

func (*IonosCloudMachineReconciler) Reconcile

func (r *IonosCloudMachineReconciler) Reconcile(
	ctx context.Context,
	ionosCloudMachine *infrav1.IonosCloudMachine,
) (_ ctrl.Result, retErr error)

func (*IonosCloudMachineReconciler) SetupWithManager

func (r *IonosCloudMachineReconciler) SetupWithManager(mgr ctrl.Manager, options controller.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