controllers

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Package controllers provides the controllers for CAPHV.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuestCSRReconciler

type GuestCSRReconciler struct {
	client.Client
	WatchFilterValue string
	// contains filtered or unexported fields
}

GuestCSRReconciler reconciles a CSR object.csr.

func (*GuestCSRReconciler) Reconcile

func (r *GuestCSRReconciler) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

Reconcile manages the lifecycle of a CSR object.

func (*GuestCSRReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type HivelocityClusterReconciler

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

	WatchFilterValue string

	APIReader       client.Reader
	HVClientFactory hvclient.Factory

	TargetClusterManagersWaitGroup *sync.WaitGroup
	// contains filtered or unexported fields
}

HivelocityClusterReconciler reconciles a HivelocityCluster object.

func (*HivelocityClusterReconciler) Reconcile

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

Reconcile 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.13.1/pkg/reconcile

func (*HivelocityClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type HivelocityMachineReconciler

type HivelocityMachineReconciler struct {
	client.Client
	APIReader        client.Reader
	HVClientFactory  hvclient.Factory
	WatchFilterValue string
}

HivelocityMachineReconciler reconciles a HivelocityMachine object.

func (*HivelocityMachineReconciler) HivelocityClusterToHivelocityMachines

func (r *HivelocityMachineReconciler) HivelocityClusterToHivelocityMachines(ctx context.Context, log logr.Logger) handler.MapFunc

HivelocityClusterToHivelocityMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of HivelocityMachines.

func (*HivelocityMachineReconciler) Reconcile

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

Reconcile manages the lifecycle of an Hivelocity machine object.

func (*HivelocityMachineReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type HivelocityMachineTemplateReconciler

type HivelocityMachineTemplateReconciler struct {
	client.Client
	APIReader        client.Reader
	HVClientFactory  hvclient.Factory
	WatchFilterValue string
}

HivelocityMachineTemplateReconciler reconciles a HivelocityMachineTemplate object.

func (*HivelocityMachineTemplateReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the HivelocityMachineTemplate object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*HivelocityMachineTemplateReconciler) SetupWithManager

SetupWithManager sets up the controller with the Manager.

type HivelocityRemediationReconciler

type HivelocityRemediationReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	WatchFilterValue string
}

HivelocityRemediationReconciler reconciles a HivelocityRemediation object.

func (*HivelocityRemediationReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the HivelocityRemediation object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*HivelocityRemediationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type HivelocityRemediationTemplateReconciler

type HivelocityRemediationTemplateReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	WatchFilterValue string
}

HivelocityRemediationTemplateReconciler reconciles a HivelocityRemediationTemplate object.

func (*HivelocityRemediationTemplateReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the HivelocityRemediationTemplate object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*HivelocityRemediationTemplateReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ManagementCluster

type ManagementCluster interface {
	client.Client
	Namespace() string
}

ManagementCluster defines an interface.

Jump to

Keyboard shortcuts

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