controllers

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const RequeueTimeout = 5 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudStackClusterReconciler

type CloudStackClusterReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	CS     cloud.Client
}

CloudStackClusterReconciler reconciles a CloudStackCluster object.

func (*CloudStackClusterReconciler) Reconcile

func (r *CloudStackClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (retRes 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.8.3/pkg/reconcile

func (*CloudStackClusterReconciler) SetupWithManager

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

Called in main, this registers the cluster reconciler to the CAPI controller manager.

type CloudStackMachineReconciler

type CloudStackMachineReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	CS     cloud.Client
}

CloudStackMachineReconciler reconciles a CloudStackMachine object

func (*CloudStackMachineReconciler) Reconcile

func (r *CloudStackMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (retRes 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.8.3/pkg/reconcile

func (*CloudStackMachineReconciler) RemoveManagedAffinity added in v0.4.0

func (r *CloudStackMachineReconciler) RemoveManagedAffinity(
	log logr.Logger,
	capiMachine *capiv1.Machine,
	csMachine *infrav1.CloudStackMachine,
) error

RemoveManagedAffinity considers a machine's affinity management strategy and removes the created affinity group if it exists.

func (*CloudStackMachineReconciler) SetupWithManager

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

Called in main, this registers the machine reconciler to the CAPI controller manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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